k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/hack/testdata/frontend-replicaset.yaml (about) 1 apiVersion: apps/v1 2 kind: ReplicaSet 3 metadata: 4 name: frontend 5 labels: 6 app: guestbook 7 tier: frontend 8 spec: 9 # this replicas value is default 10 # modify it according to your case 11 replicas: 3 12 selector: 13 matchLabels: 14 app: guestbook 15 tier: frontend 16 template: 17 metadata: 18 labels: 19 app: guestbook 20 tier: frontend 21 spec: 22 containers: 23 - name: php-redis 24 image: gcr.io/google_samples/gb-frontend:v3 25 resources: 26 requests: 27 cpu: 100m 28 memory: 100Mi 29 env: 30 - name: GET_HOSTS_FROM 31 value: dns 32 # If your cluster config does not include a dns service, then to 33 # instead access environment variables to find service host 34 # info, comment out the 'value: dns' line above, and uncomment the 35 # line below. 36 # value: env 37 ports: 38 - containerPort: 80