Skip to content

Instantly share code, notes, and snippets.

@farukonder
Created September 24, 2018 14:48
Show Gist options
  • Save farukonder/e5859500767f77c3b9b98e2cc46fd136 to your computer and use it in GitHub Desktop.
Save farukonder/e5859500767f77c3b9b98e2cc46fd136 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: guestbook
labels:
app: guestbook
spec:
# comment or delete the following line if you want to use a LoadBalancer
# type: NodePort
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
type: LoadBalancer
ports:
- port: 80
targetPort: 3000
name: http
- port: 14100
name: http95
targetPort: 3000
selector:
app: guestbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment