website/content/en/examples/application/guestbook/frontend-service.yaml

19 lines
493 B
YAML
Raw Normal View History

2021-06-17 04:45:11 +00:00
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook
apiVersion: v1
kind: Service
metadata:
name: frontend
labels:
2021-06-17 04:45:11 +00:00
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
2021-06-17 04:45:11 +00:00
#type: LoadBalancer
ports:
2021-06-17 04:45:11 +00:00
# the port that this service should serve on
- port: 80
selector:
2021-06-17 04:45:11 +00:00
app: guestbook
tier: frontend