OpenShift Service Operations
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: