k8s guestbook example

This commit is contained in:
Vincent Fiduccia
2016-03-09 11:52:25 -07:00
parent c462456014
commit f0dfd83154
9 changed files with 145 additions and 0 deletions
@@ -0,0 +1,28 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: ${FRONTEND_NAME}
labels:
name: ${FRONTEND_NAME}
spec:
replicas: ${FRONTEND_REPLICAS}
selector:
name: ${FRONTEND_NAME}
template:
metadata:
labels:
name: ${FRONTEND_NAME}
spec:
containers:
- name: php-redis
image: gcr.io/google_samples/gb-frontend:v3
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
# line below.
# value: env
ports:
- containerPort: 80