In this tutorial, we are going to deploy the four APIs to an Openshift project. Openshift is built on top of Kubernetes, but there are still a lot of differences. It has a different command line oc than kubectl with similar syntax.
Let’s assume that you have an Openshift project available and you have access to the OC command line to deploy applications.
This is a snapshot of a sample app created by to demonstrate microservices service registration/discovery with Consul. Source repo can be found at
Note: the api deployment requires hostNetwork for port binding and will allocate ports from a pre-defined range (30000~30499 in this case). Not only the SCC has to be granted to the serviceaccount but also iptables firewall rule needs to be added.