Skip to content
GitLab
Explore
Sign in
Mirror
Local Path Provisioner
Compare revisions
7ef561db4cac502538d5a729c924a4f15bfe8bc4 to 4d42c70e748fed13cd66f86656e909184a5b08d2
Commits on Source (2)
add storageClass.volumeBindingMode value to helm chart
· f8f59d0a
Dmitry K. Anisimov
authored
Jul 13, 2023
f8f59d0a
Add pod annotation, securityContext blocks
· 4d42c70e
Serge Logvinov
authored
Apr 06, 2023
Signed-off-by:
Serge Logvinov
<
serge.logvinov@sinextra.dev
>
4d42c70e
Hide whitespace changes
Inline
Side-by-side
deploy/chart/local-path-provisioner/templates/deployment.yaml
View file @
4d42c70e
...
@@ -13,6 +13,10 @@ spec:
...
@@ -13,6 +13,10 @@ spec:
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
template
:
template
:
metadata
:
metadata
:
{{
- with .Values.podAnnotations
}}
annotations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
labels
:
labels
:
app.kubernetes.io/name
:
{{
include "local-path-provisioner.name" .
}}
app.kubernetes.io/name
:
{{
include "local-path-provisioner.name" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
...
@@ -22,8 +26,12 @@ spec:
...
@@ -22,8 +26,12 @@ spec:
{{
- toYaml . | nindent 8
}}
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- end
}}
serviceAccountName
:
{{
template "local-path-provisioner.serviceAccountName" .
}}
serviceAccountName
:
{{
template "local-path-provisioner.serviceAccountName" .
}}
securityContext
:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
containers
:
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
{{
- if .Values.privateRegistry.registryUrl
}}
{{
- if .Values.privateRegistry.registryUrl
}}
image
:
"
{{
.Values.privateRegistry.registryUrl
}}/{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
image
:
"
{{
.Values.privateRegistry.registryUrl
}}/{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
{{
- else
}}
{{
- else
}}
...
...
deploy/chart/local-path-provisioner/templates/storageclass.yaml
View file @
4d42c70e
...
@@ -10,7 +10,7 @@ metadata:
...
@@ -10,7 +10,7 @@ metadata:
storageclass.kubernetes.io/is-default-class
:
"
true"
storageclass.kubernetes.io/is-default-class
:
"
true"
{{
- end
}}
{{
- end
}}
provisioner
:
{{
template "local-path-provisioner.provisionerName" .
}}
provisioner
:
{{
template "local-path-provisioner.provisionerName" .
}}
volumeBindingMode
:
WaitForFirstConsumer
volumeBindingMode
:
{{
.Values.storageClass.volumeBindingMode
}}
reclaimPolicy
:
{{
.Values.storageClass.reclaimPolicy
}}
reclaimPolicy
:
{{
.Values.storageClass.reclaimPolicy
}}
allowVolumeExpansion
:
true
allowVolumeExpansion
:
true
{{
- end
}}
{{
- end
}}
deploy/chart/local-path-provisioner/values.yaml
View file @
4d42c70e
...
@@ -41,6 +41,9 @@ storageClass:
...
@@ -41,6 +41,9 @@ storageClass:
## ReclaimPolicy field of the class, which can be either Delete or Retain
## ReclaimPolicy field of the class, which can be either Delete or Retain
reclaimPolicy
:
Delete
reclaimPolicy
:
Delete
## volumeBindingMode field controls when volume binding and dynamic provisioning should occur, can be "Immediate" or "WaitForFirstConsumer"
volumeBindingMode
:
WaitForFirstConsumer
# nodePathMap is the place user can customize where to store the data on each node.
# nodePathMap is the place user can customize where to store the data on each node.
# 1. If one node is not listed on the nodePathMap, and Kubernetes wants to create volume on it, the paths specified in
# 1. If one node is not listed on the nodePathMap, and Kubernetes wants to create volume on it, the paths specified in
# DEFAULT_PATH_FOR_NON_LISTED_NODES will be used for provisioning.
# DEFAULT_PATH_FOR_NON_LISTED_NODES will be used for provisioning.
...
@@ -66,6 +69,21 @@ nodePathMap:
...
@@ -66,6 +69,21 @@ nodePathMap:
# If `sharedFileSystemPath` is used, then `nodePathMap` must be set to `[]`.
# If `sharedFileSystemPath` is used, then `nodePathMap` must be set to `[]`.
# sharedFileSystemPath: ""
# sharedFileSystemPath: ""
podAnnotations
:
{}
podSecurityContext
:
{}
# runAsNonRoot: true
securityContext
:
{}
# allowPrivilegeEscalation: false
# seccompProfile:
# type: RuntimeDefault
# capabilities:
# drop: ["ALL"]
# runAsUser: 65534
# runAsGroup: 65534
# readOnlyRootFilesystem: true
resources
:
{}
resources
:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# choice for the user. This also increases chances charts run on environments with little
...
...