frontend-controller.yaml 747 B

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