Skip to content

Instantly share code, notes, and snippets.

@d33d33
Created September 26, 2019 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d33d33/f57681a7cc4a9c990e406563752ab572 to your computer and use it in GitHub Desktop.
Save d33d33/f57681a7cc4a9c990e406563752ab572 to your computer and use it in GitHub Desktop.
K8S Service
kind: Service
apiVersion: v1
metadata:
name: my-lb
spec:
selector:
app: my-app
ports:
- name: http
protocol: TCP
port: 80
targetPort: 9200
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment