frontend-deployment.yaml.in 793 B

12345678910111213141516171819202122232425262728293031323334
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: frontend
  5. spec:
  6. replicas: 3
  7. selector:
  8. matchLabels:
  9. app: guestbook
  10. tier: frontend
  11. template:
  12. metadata:
  13. labels:
  14. app: guestbook
  15. tier: frontend
  16. spec:
  17. containers:
  18. - name: php-redis
  19. image: {{.GBFrontendImage}}
  20. resources:
  21. requests:
  22. cpu: 100m
  23. memory: 100Mi
  24. env:
  25. - name: GET_HOSTS_FROM
  26. value: dns
  27. # If your cluster config does not include a dns service, then to
  28. # instead access environment variables to find service host
  29. # info, comment out the 'value: dns' line above, and uncomment the
  30. # line below:
  31. # value: env
  32. ports:
  33. - containerPort: 80