Skip to content

Commit cb0bfbe

Browse files
committed
Follow-up to #583: Modernize remaining manifests using ReplicationController with Deployment
1 parent fd06880 commit cb0bfbe

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

web/guestbook-go/guestbook-controller.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
kind: ReplicationController
2-
apiVersion: v1
1+
kind: Deployment
2+
apiVersion: apps/v1
33
metadata:
44
name: guestbook
55
labels:
66
app: guestbook
77
spec:
88
replicas: 3
99
selector:
10-
app: guestbook
10+
matchLabels:
11+
app: guestbook
1112
template:
1213
metadata:
1314
labels:

web/guestbook-go/redis-replica-controller.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
kind: ReplicationController
2-
apiVersion: v1
1+
kind: Deployment
2+
apiVersion: apps/v1
33
metadata:
44
name: redis-replica
55
labels:
@@ -8,8 +8,9 @@ metadata:
88
spec:
99
replicas: 2
1010
selector:
11-
app: redis
12-
role: replica
11+
matchLabels:
12+
app: redis
13+
role: replica
1314
template:
1415
metadata:
1516
labels:

0 commit comments

Comments
 (0)