OpenShift Service Definition

From NovaOrdis Knowledge Base
Revision as of 19:16, 23 November 2017 by Ovidiu (talk | contribs) (→‎Internal)
Jump to navigation Jump to search

External

Internal

Example

 apiVersion: v1
 kind: Service
 metadata:
   annotations:
     description: The Gogs server's http port
   labels:
     app: gogs
   name: gogs
 spec:
   ports:
   - name: web
     port: 3000
     protocol: TCP
     targetPort: 3000
   selector:
     app: gogs
     deploymentconfig: gogs
   sessionAffinity: None
   type: ClusterIP