OpenShift Service Operations

From NovaOrdis Knowledge Base
Revision as of 09:02, 7 December 2017 by Ovidiu (talk | contribs) (Created page with "=Internal= * OpenShift Operations =Create a Service= Use a template similar to: apiVersion: v1 kind: Template metadata: name: nov...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Create a Service

Use a template similar to:

apiVersion: v1
kind: Template
metadata:
  name: novaordis-service-template
objects:
- apiVersion: v1
  kind: Service
  metadata:
    annotations:
      description: The web server's http port.
      openshift.io/generated-by: OpenShiftNewApp
    labels:
      app: eap70-basic-s2i
      application: session-servlet
      template: eap70-basic-s2i
      xpaas: 1.4.0
    name: session-servlet
  spec:
    ports:
    - port: 8080
      protocol: TCP
      targetPort: 8080
    selector:
      deploymentConfig: session-servlet
    sessionAffinity: None
    type: ClusterIP
  status: