OpenShift Service Definition: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Internal=
=Internal=


* [[OpenShift_Concepts#Service|OpenShift Concepts]]
* [[OpenShift_Configuration#Definitions|OpenShift Definitions]]
* [[OpenShift_Configuration#Definitions|OpenShift Definitions]]



Revision as of 19:16, 23 November 2017

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