File tree 7 files changed +25
-3
lines changed
charts/nfs-subdir-external-provisioner
7 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 24
24
{{- include "nfs-subdir-external-provisioner.podLabels" . | nindent 8 }}
25
25
spec :
26
26
serviceAccountName : {{ template "nfs-subdir-external-provisioner.serviceAccountName" . }}
27
+ securityContext :
28
+ {{- toYaml .Values.podSecurityContext | nindent 8 }}
27
29
{{- if .Values.nodeSelector }}
28
30
nodeSelector :
29
31
{{ toYaml .Values.nodeSelector | indent 8 }}
43
45
- name : {{ .Chart.Name }}
44
46
image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
45
47
imagePullPolicy : {{ .Values.image.pullPolicy }}
48
+ securityContext :
49
+ {{- toYaml .Values.securityContext | nindent 12 }}
46
50
volumeMounts :
47
51
- name : {{ .Values.nfs.volumeName }}
48
52
mountPath : /persistentvolumes
Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ podAnnotations: {}
74
74
# # Set pod priorityClassName
75
75
# priorityClassName: ""
76
76
77
+ podSecurityContext : {}
78
+
79
+ securityContext : {}
80
+
77
81
serviceAccount :
78
82
# Specifies whether a ServiceAccount should be created
79
83
create : true
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ metadata:
5
5
subjects :
6
6
- kind : ServiceAccount
7
7
name : nfs-client-provisioner
8
+ # replace with namespace where provisioner is deployed
8
9
namespace : default
9
10
roleRef :
10
11
kind : ClusterRole
Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
1
2
kind : Deployment
2
- apiVersion : extensions/v1beta1
3
3
metadata :
4
4
name : nfs-client-provisioner
5
+ labels :
6
+ app : nfs-client-provisioner
7
+ # replace with namespace where provisioner is deployed
8
+ namespace : default
5
9
spec :
6
10
replicas : 1
7
11
strategy :
8
12
type : Recreate
13
+ selector :
14
+ matchLabels :
15
+ app : nfs-client-provisioner
9
16
template :
10
17
metadata :
11
18
labels :
@@ -22,11 +29,11 @@ spec:
22
29
- name : PROVISIONER_NAME
23
30
value : k8s-sigs.io/nfs-subdir-external-provisioner
24
31
- name : NFS_SERVER
25
- value : 10.10.10.60
32
+ value : 10.3.243.101
26
33
- name : NFS_PATH
27
34
value : /ifs/kubernetes
28
35
volumes :
29
36
- name : nfs-client-root
30
37
nfs :
31
- server : 10.10.10.60
38
+ server : 10.3.243.101
32
39
path : /ifs/kubernetes
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ kind: Role
2
2
apiVersion : rbac.authorization.k8s.io/v1
3
3
metadata :
4
4
name : leader-locking-nfs-client-provisioner
5
+ # replace with namespace where provisioner is deployed
6
+ namespace : default
5
7
rules :
6
8
- apiGroups : [""]
7
9
resources : ["endpoints"]
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ kind: RoleBinding
2
2
apiVersion : rbac.authorization.k8s.io/v1
3
3
metadata :
4
4
name : leader-locking-nfs-client-provisioner
5
+ # replace with namespace where provisioner is deployed
6
+ namespace : default
5
7
subjects :
6
8
- kind : ServiceAccount
7
9
name : nfs-client-provisioner
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ apiVersion: v1
2
2
kind : ServiceAccount
3
3
metadata :
4
4
name : nfs-client-provisioner
5
+ # replace with namespace where provisioner is deployed
6
+ namespace : default
You can’t perform that action at this time.
0 commit comments