...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: agnhost-replica
5spec:
6 replicas: 2
7 selector:
8 matchLabels:
9 app: agnhost
10 role: replica
11 tier: backend
12 template:
13 metadata:
14 labels:
15 app: agnhost
16 role: replica
17 tier: backend
18 spec:
19 containers:
20 - name: replica
21 image: {{.AgnhostImage}}
22 args: [ "guestbook", "--replicaof", "agnhost-primary", "--http-port", "6379" ]
23 resources:
24 requests:
25 cpu: 100m
26 memory: 100Mi
27 ports:
28 - containerPort: 6379
View as plain text