-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnfs-deployment.yaml
42 lines (41 loc) · 1.02 KB
/
nfs-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apiVersion: apps/v1
kind: Deployment
metadata:
name: nfs-client-provisioner
labels:
app: nfs-client-provisioner
namespace: kubenfs
spec:
replicas: 1
selector:
matchLabels:
app: nfs-client-provisioner
strategy:
type: Recreate
selector:
matchLabels:
app: nfs-client-provisioner
template:
metadata:
labels:
app: nfs-client-provisioner
spec:
serviceAccountName: nfs-client-provisioner
containers:
- name: nfs-client-provisioner
image: quay.io/external_storage/nfs-client-provisioner:latest
volumeMounts:
- name: nfs-client-root
mountPath: /persistentvolumes
env:
- name: PROVISIONER_NAME
value: kubenfs
- name: NFS_SERVER
value: 10.128.0.9
- name: NFS_PATH
value: /root/nfs/kubedata
volumes:
- name: nfs-client-root
nfs:
server: 10.128.0.9
path: /root/nfs/kubedata