Skip to content

Instantly share code, notes, and snippets.

@djsly
Created April 6, 2017 21:30
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 djsly/e1532bae6eac62b9783f72b517bbcbdf to your computer and use it in GitHub Desktop.
Save djsly/e1532bae6eac62b9783f72b517bbcbdf to your computer and use it in GitHub Desktop.
manifest-2-services.yml
apiVersion: v1
kind: Service
metadata:
name: frontend
labels:
app: guestbook
tier: frontend
spec:
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
type: LoadBalancer
ports:
# the port that this service should serve on
- port: 80
selector:
app: guestbook
tier: frontend
---
apiVersion: v1
kind: Service
metadata:
name: frontend2
labels:
app: guestbook2
tier: frontend2
spec:
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
type: LoadBalancer
ports:
# the port that this service should serve on
- port: 80
selector:
app: guestbook2
tier: frontend2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment