OpenShift Service Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 46: Line 46:
=Integrate an External Service=
=Integrate an External Service=


{{External|https://docs.openshift.com/container-platform/latest/dev_guide/integrating_external_services.html#dev-guide-integrating-external-services}}
==Integrate a Service Running Outside OpenShift==


An [[OpenShift Concepts#ExternalService|external service]] represents an instance running outside OpenShift.
This procedure can be used to integrate an [[OpenShift Concepts#ExternalService|external service]].


<font color=red>'''TODO'''</font>
<font color=red>'''TODO'''</font>:https://docs.openshift.com/container-platform/latest/dev_guide/integrating_external_services.html#dev-guide-integrating-external-services
 
==Integrate a Service Running in a Different Project==

Revision as of 21:09, 8 December 2017

Internal

Overview

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 -f ./novaordis-service-template.yaml | oc create -f -

DID NOT WORK, got:

error: unable to process invalid resource "."

I worked around by using the web UI and

apiVersion: v1
kind: Service
metadata:
  annotations:
    openshift.io/generated-by: novaordis-service-template
  labels:
    app: novaordis-session-servlet
    application: novaordis-session-servlet
    template: novaordis-service-template
  name: novaordis-session-servlet
spec:
  ports:
  - port: 8080
    protocol: TCP
    targetPort: 8080
  selector:
    deploymentConfig: novaordis-session-servlet
  sessionAffinity: None
  type: ClusterIP
status:

Integrate an External Service

Integrate a Service Running Outside OpenShift

This procedure can be used to integrate an external service.

TODO:https://docs.openshift.com/container-platform/latest/dev_guide/integrating_external_services.html#dev-guide-integrating-external-services

Integrate a Service Running in a Different Project