github.com/replicatedcom/ship@v0.50.0/integration/init/plain-k8s-no-trailing-newline/expected/base/redis-slave-deployment.yaml (about) 1 apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 2 kind: Deployment 3 metadata: 4 name: redis-slave 5 spec: 6 selector: 7 matchLabels: 8 app: redis 9 role: slave 10 tier: backend 11 replicas: 2 12 template: 13 metadata: 14 labels: 15 app: redis 16 role: slave 17 tier: backend 18 spec: 19 containers: 20 - name: slave 21 image: gcr.io/google_samples/gb-redisslave:v1 22 resources: 23 requests: 24 cpu: 100m 25 memory: 100Mi 26 env: 27 - name: GET_HOSTS_FROM 28 value: dns 29 # If your cluster config does not include a dns service, then to 30 # instead access an environment variable to find the master 31 # service's host, comment out the 'value: dns' line above, and 32 # uncomment the line below: 33 # value: env 34 ports: 35 - containerPort: 6379