Skip to content

Commit 13cbf0b

Browse files
authored
Merge pull request #442 from HusseinKabbout/master
[nfs-example] Use Deployments instead of ReplicationController
2 parents fe33485 + b89d392 commit 13cbf0b

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

staging/volumes/nfs/nfs-busybox-rc.yaml renamed to staging/volumes/nfs/nfs-busybox-deployment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# This mounts the nfs volume claim into /mnt and continuously
22
# overwrites /mnt/index.html with the time and hostname of the pod.
33

4-
apiVersion: v1
5-
kind: ReplicationController
4+
apiVersion: apps/v1
5+
kind: Deployment
66
metadata:
77
name: nfs-busybox
88
spec:
99
replicas: 2
1010
selector:
11-
name: nfs-busybox
11+
matchLabels:
12+
name: nfs-busybox
1213
template:
1314
metadata:
1415
labels:

staging/volumes/nfs/nfs-server-rc.yaml renamed to staging/volumes/nfs/nfs-server-deployment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
apiVersion: v1
2-
kind: ReplicationController
1+
apiVersion: apps/v1
2+
kind: Deployment
33
metadata:
44
name: nfs-server
55
spec:
66
replicas: 1
77
selector:
8-
role: nfs-server
8+
matchLabels:
9+
role: nfs-server
910
template:
1011
metadata:
1112
labels:

staging/volumes/nfs/nfs-web-rc.yaml renamed to staging/volumes/nfs/nfs-web-deployment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# This pod mounts the nfs volume claim into /usr/share/nginx/html and
22
# serves a simple web page.
33

4-
apiVersion: v1
5-
kind: ReplicationController
4+
apiVersion: apps/v1
5+
kind: Deployment
66
metadata:
77
name: nfs-web
88
spec:
99
replicas: 2
1010
selector:
11-
role: web-frontend
11+
matchLabels:
12+
role: web-frontend
1213
template:
1314
metadata:
1415
labels:

0 commit comments

Comments
 (0)