Skip to content

Commit 0052868

Browse files
committed
add updated yaml
1 parent 4a95d67 commit 0052868

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

guestbook/all-in-one/guestbook-all-in-one.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,39 +46,39 @@ spec:
4646
apiVersion: v1
4747
kind: Service
4848
metadata:
49-
name: redis-slave
49+
name: redis-replica
5050
labels:
5151
app: redis
5252
tier: backend
53-
role: slave
53+
role: replica
5454
spec:
5555
ports:
5656
- port: 6379
5757
selector:
5858
app: redis
5959
tier: backend
60-
role: slave
60+
role: replica
6161
---
6262
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
6363
kind: Deployment
6464
metadata:
65-
name: redis-slave
65+
name: redis-replica
6666
spec:
6767
selector:
6868
matchLabels:
6969
app: redis
70-
role: slave
70+
role: replica
7171
tier: backend
7272
replicas: 2
7373
template:
7474
metadata:
7575
labels:
7676
app: redis
77-
role: slave
77+
role: replica
7878
tier: backend
7979
spec:
8080
containers:
81-
- name: slave
81+
- name: replica
8282
image: gcr.io/google_samples/gb-redisslave:v1
8383
resources:
8484
requests:
@@ -104,7 +104,7 @@ metadata:
104104
tier: frontend
105105
spec:
106106
# comment or delete the following line if you want to use a LoadBalancer
107-
type: NodePort
107+
type: NodePort
108108
# if your cluster supports it, uncomment the following to automatically create
109109
# an external load-balanced IP for the frontend service.
110110
# type: LoadBalancer

0 commit comments

Comments
 (0)