2016-03-23 23:03:07 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
2015-06-11 15:51:04 +00:00
|
|
|
metadata:
|
|
|
|
name: frontend
|
|
|
|
spec:
|
|
|
|
replicas: 3
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2015-09-23 09:37:47 +00:00
|
|
|
app: guestbook
|
|
|
|
tier: frontend
|
2015-06-11 15:51:04 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: php-redis
|
2016-04-12 15:36:07 +00:00
|
|
|
image: gcr.io/google-samples/gb-frontend:v4
|
2015-09-23 09:37:47 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
2015-08-10 18:00:44 +00:00
|
|
|
env:
|
|
|
|
- name: GET_HOSTS_FROM
|
|
|
|
value: dns
|
|
|
|
# If your cluster config does not include a dns service, then to
|
|
|
|
# instead access environment variables to find service host
|
|
|
|
# info, comment out the 'value: dns' line above, and uncomment the
|
2017-04-28 03:47:32 +00:00
|
|
|
# line below:
|
2015-08-10 18:00:44 +00:00
|
|
|
# value: env
|
2015-06-11 15:51:04 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 80
|