frontend-service.yaml 439 B

123456789101112131415161718
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: frontend
  5. labels:
  6. app: guestbook
  7. tier: frontend
  8. spec:
  9. # comment or delete the following line if you want to use a LoadBalancer
  10. type: NodePort
  11. # if your cluster supports it, uncomment the following to automatically create
  12. # an external load-balanced IP for the frontend service.
  13. # type: LoadBalancer
  14. ports:
  15. - port: 80
  16. selector:
  17. app: guestbook
  18. tier: frontend