Skip to content

Instantly share code, notes, and snippets.

@gjyoung1974
Created November 4, 2018 01:09
Show Gist options
  • Save gjyoung1974/3705e87eaad2a674706cf72daea95fcd to your computer and use it in GitHub Desktop.
Save gjyoung1974/3705e87eaad2a674706cf72daea95fcd to your computer and use it in GitHub Desktop.
expose a k8s pod - LoadBalancer
apiVersion: v1
kind: Service
metadata:
name: stupid-lb-service
spec:
type: LoadBalancer
selector:
pod-template-hash: "some-hash-number"
ports:
- protocol: TCP
port: 80
targetPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment