Skip to content

Commit fd06880

Browse files
committed
Modernize redis-master manifest: replace ReplicationController with Deployment
1 parent a0ed769 commit fd06880

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
kind: ReplicationController
2-
apiVersion: v1
1+
apiVersion: apps/v1
2+
kind: Deployment
33
metadata:
4-
name: redis-master
5-
labels:
4+
name: redis-master
5+
labels:
66
app: redis
77
role: master
88
spec:
99
replicas: 1
1010
selector:
11-
app: redis
12-
role: master
11+
matchLabels:
12+
app: redis
13+
role: master
1314
template:
1415
metadata:
1516
labels:
@@ -18,7 +19,7 @@ spec:
1819
spec:
1920
containers:
2021
- name: redis-master
21-
image: redis
22+
image: redis:7.2
2223
ports:
2324
- name: redis-server
2425
containerPort: 6379

0 commit comments

Comments
 (0)