OpenShift Service Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
The only method to find a valid cluster IP I could think of was to run oc new-app jenkins-ephemeral in the target project and read the cluster IP from the newly created service definition.
The only method to find a valid cluster IP I could think of was to run oc new-app jenkins-ephemeral in the target project and read the cluster IP from the newly created service definition.


172.30.114.148
<font color=red>DID NOT WORK</font>

Revision as of 09:35, 7 December 2017

Internal

Create a Service

Use a template similar to https://github.com/NovaOrdis/playground/blob/master/openshift/templates/eap7-service-template.yaml.

then

oc process -p APPLICATION_NAME=my-app-name -p CLUSTER_IP=<cluster-ip-value> -f ./novaordis-service-template.yaml | oc create -f -

The only method to find a valid cluster IP I could think of was to run oc new-app jenkins-ephemeral in the target project and read the cluster IP from the newly created service definition.

DID NOT WORK