k3s/test/e2e/testing-manifests/guestbook/redis-slave-deployment.yaml.in

36 lines
834 B
YAML
Raw Normal View History

2018-12-19 16:17:46 +00:00
apiVersion: apps/v1
2017-09-09 05:48:38 +00:00
kind: Deployment
metadata:
name: redis-slave
spec:
replicas: 2
2018-12-19 16:17:46 +00:00
selector:
matchLabels:
app: redis
role: slave
tier: backend
2017-09-09 05:48:38 +00:00
template:
metadata:
labels:
app: redis
role: slave
tier: backend
spec:
containers:
- name: slave
image: {{.GBRedisSlaveImage}}
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: GET_HOSTS_FROM
value: dns
# If your cluster config does not include a dns service, then to
# instead access an environment variable to find the master
# service's host, comment out the 'value: dns' line above, and
# uncomment the line below:
# value: env
ports:
- containerPort: 6379