Skip to content

Instantly share code, notes, and snippets.

@danielchg
Created June 9, 2017 07:54
Show Gist options
  • Select an option

  • Save danielchg/92a5132aa37e03ab70b91aa71db2f802 to your computer and use it in GitHub Desktop.

Select an option

Save danielchg/92a5132aa37e03ab70b91aa71db2f802 to your computer and use it in GitHub Desktop.
Kubernetes service definition example, with a public load balancer
apiVersion: v1
kind: Service
metadata:
name: kopsdemo
labels:
name: kopsdemo
spec:
type: LoadBalancer
loadBalancerSourceRanges:
- 0.0.0.0/0
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
name: kopsdemo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment