Skip to content

Commit 4a95d67

Browse files
committed
fix service and deployment
1 parent bc96654 commit 4a95d67

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

guestbook/all-in-one/redis-slave.yaml renamed to guestbook/all-in-one/redis-replica.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: redis-slave
4+
name: redis-replica
55
labels:
66
app: redis
7-
role: slave
7+
role: replica
88
tier: backend
99
spec:
1010
ports:
1111
- port: 6379
1212
selector:
1313
app: redis
14-
role: slave
14+
role: replica
1515
tier: backend
1616
---
1717
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
1818
kind: Deployment
1919
metadata:
20-
name: redis-slave
20+
name: redis-replica
2121
spec:
2222
selector:
2323
matchLabels:
2424
app: redis
25-
role: slave
25+
role: replica
2626
tier: backend
2727
replicas: 2
2828
template:
2929
metadata:
3030
labels:
3131
app: redis
32-
role: slave
32+
role: replica
3333
tier: backend
3434
spec:
3535
containers:
36-
- name: slave
36+
- name: replica
3737
image: gcr.io/google_samples/gb-redisslave:v1
3838
resources:
3939
requests:

0 commit comments

Comments
 (0)