Created
April 6, 2017 21:30
-
-
Save djsly/e1532bae6eac62b9783f72b517bbcbdf to your computer and use it in GitHub Desktop.
manifest-2-services.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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