Skip to content

Instantly share code, notes, and snippets.

@SarasaGunawardhana
Created November 8, 2019 07:37
Show Gist options
  • Save SarasaGunawardhana/27ef85a354ca90f166c204e85ab459e0 to your computer and use it in GitHub Desktop.
Save SarasaGunawardhana/27ef85a354ca90f166c204e85ab459e0 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
run: my-service-1
name: my-service-1
spec:
ports:
- name: https
port: 443
protocol: TCP
targetPort: 4002
- name: http
port: 80
protocol: TCP
targetPort: 4002
- name: internal
port: 4002
targetPort: 4002
selector:
run: my-service-1
type: ClusterIP
status:
loadBalancer: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment