Skip to content

Instantly share code, notes, and snippets.

@faiyaz26
Created August 28, 2018 03:20
Show Gist options
  • Save faiyaz26/233361af1241e28063d811dca3ccd764 to your computer and use it in GitHub Desktop.
Save faiyaz26/233361af1241e28063d811dca3ccd764 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: rtn-k8s-service
labels:
app: rtn-k8s
spec:
ports:
- port: 80
targetPort: 3000
protocol: TCP
type: LoadBalancer
sessionAffinity: ClientIP
selector:
app: rtn-k8s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment