OpenShift

How to call a Kubernetes Service on OpenShift

Summery - Every kubernets service has different endpoints for the same service. Four scenarios are outlined that explain when to use what endpoint, depending on if the client is deployed on the kubernetes cluster or externally and/or if an API manager is used. Introduction We use Openshift as our Kubernetes implementation. Before we talk about calling a service, let’s first talk about deplo…

Read more

Change the Kubernetes Domain on OpenShift

The KUBERNETES_DOMAIN is defaulted to vagrant.f8 in Fabric8, and if you forgot to set this system parametes before running the fabric8 install then you end up with routes containing the vagrant.f8 domain. To fix this you will have to reinstall the console. First export KUBERNETES_DOMAIN=<yourdomain> oc delete route fabric8 oc delete rc fabric8 systemctl stop openshift docker kill <fabric…

Read more

Fabric8 Developer cheat sheet

A running list of commands and utilities to move around the fabric 1. Docker Log into a running docker container docker exec -it CONTAINER_NAME /bin/bash See the log for a docker container docker logs -f CONTAINER_NAME Get some live stats for on all your containers docker stats $(docker ps -q) 2. Maven & Fabric8 The following commands use the Maven Fabric8 Plugin Create a Docker image of your…

Read more

API Management on Kubernetes

I just returned from the London MicroServices Architecture Developer Day. Attendence was really great and the tickets actually sold out. Here is nice writeup if you missed it. Marc Savy and yours truly presented API Management on Kubernetes. If you want to follow along you need to deploy the ElasticSearch app, the Fabric8-HTTP-Gateway app and the APIMan app - in that order. If all goes well the A…

Read more

My Fabric8 VM is running out of diskspace!

The default Ubuntu image has a dynamically sized 40 GB harddrive. You may find that if you are working with Docker images, that this space fills up quickly. Before you start download the GParted iso. 1. Resize the vmdk file VirtualBox cannot resize a vmdk file. Instead you will need to change over to use the vdi format, then resize (to 100 GB) and finally create vmdk formatted clone of this. Make…

Read more

Getting started with Fabric8 and OpenShift v3 on OSX

The full fabric8 docs can be found here. Here I took the relavant sections applicable to running on OSX, and I added some notes. OpenShift v3 relies on Docker for its container management. OSX does not support Docker natively. The recommended way is to use vagrant to create a VM with the correct Docker configuration. 1. Prerequisites Install whatever the newest version is of the following: Docker…

Read more