Skip to content

Commit 5fdb455

Browse files
authored
Create nfs.yml
1 parent 44d2269 commit 5fdb455

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

PersistentVolume/nfs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
kind: Deployment
2+
apiVersion: apps/v1
3+
metadata:
4+
name: nfs-client-provisioner
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: nfs-client-provisioner
10+
strategy:
11+
type: Recreate
12+
template:
13+
metadata:
14+
labels:
15+
app: nfs-client-provisioner
16+
spec:
17+
18+
containers:
19+
- name: nfs-client-provisioner
20+
image: registry.k8s.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2
21+
volumeMounts:
22+
- name: nfs-client-root
23+
mountPath: /azfarkube
24+
env:
25+
- name: PROVISIONER_NAME
26+
value: k8s-sigs.io/nfs-subdir-external-provisioner
27+
- name: NFS_SERVER
28+
value: 192.168.59.102
29+
- name: NFS_PATH
30+
value: /azfarnfs
31+
volumes:
32+
- name: nfs-client-root
33+
nfs:
34+
server: 192.168.59.102
35+
path: /azfarnfs

0 commit comments

Comments
 (0)