Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
c2a2d5d5
Unverified
Commit
c2a2d5d5
authored
Mar 13, 2023
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 13, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #267 from justdan96/master
Use a PDB if the Enabled in the values.yaml
parents
cf9332ad
63586f94
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
38 deletions
+68
-38
Chart.yaml
charts/nfs-subdir-external-provisioner/Chart.yaml
+1
-1
README.md
charts/nfs-subdir-external-provisioner/README.md
+39
-37
_helpers.tpl
...ts/nfs-subdir-external-provisioner/templates/_helpers.tpl
+11
-0
poddisruptionbudget.yaml
...r-external-provisioner/templates/poddisruptionbudget.yaml
+13
-0
values.yaml
charts/nfs-subdir-external-provisioner/values.yaml
+4
-0
No files found.
charts/nfs-subdir-external-provisioner/Chart.yaml
View file @
c2a2d5d5
...
...
@@ -3,7 +3,7 @@ appVersion: 4.0.2
description
:
nfs-subdir-external-provisioner is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes.
name
:
nfs-subdir-external-provisioner
home
:
https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
version
:
4.0.1
7
version
:
4.0.1
8
kubeVersion
:
"
>=1.9.0-0"
sources
:
-
https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
...
...
charts/nfs-subdir-external-provisioner/README.md
View file @
c2a2d5d5
...
...
@@ -48,43 +48,45 @@ The command removes all the Kubernetes components associated with the chart and
The following tables lists the configurable parameters of this chart and their default values.
| Parameter | Description | Default |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
|
`replicaCount`
| Number of provisioner instances to deployed |
`1`
|
|
`strategyType`
| Specifies the strategy used to replace old Pods by new ones |
`Recreate`
|
|
`image.repository`
| Provisioner image |
`registry.k8s.io/sig-storage/nfs-subdir-external-provisioner`
|
|
`image.tag`
| Version of provisioner image |
`v4.0.2`
|
|
`image.pullPolicy`
| Image pull policy |
`IfNotPresent`
|
|
`imagePullSecrets`
| Image pull secrets |
`[]`
|
|
`storageClass.name`
| Name of the storageClass |
`nfs-client`
|
|
`storageClass.defaultClass`
| Set as the default StorageClass |
`false`
|
|
`storageClass.allowVolumeExpansion`
| Allow expanding the volume |
`true`
|
|
`storageClass.reclaimPolicy`
| Method used to reclaim an obsoleted volume |
`Delete`
|
|
`storageClass.provisionerName`
| Name of the provisionerName | null |
|
`storageClass.archiveOnDelete`
| Archive PVC when deleting |
`true`
|
|
`storageClass.onDelete`
| Strategy on PVC deletion. Overrides archiveOnDelete when set to lowercase values 'delete' or 'retain' | null |
|
`storageClass.pathPattern`
| Specifies a template for the directory name | null |
|
`storageClass.accessModes`
| Set access mode for PV |
`ReadWriteOnce`
|
|
`storageClass.volumeBindingMode`
| Set volume binding mode for Storage Class |
`Immediate`
|
|
`storageClass.annotations`
| Set additional annotations for the StorageClass |
`{}`
|
|
`leaderElection.enabled`
| Enables or disables leader election |
`true`
|
|
`nfs.server`
| Hostname of the NFS server (required) | null (ip or hostname) |
|
`nfs.path`
| Basepath of the mount point to be used |
`/nfs-storage`
|
|
`nfs.mountOptions`
| Mount options (e.g. 'nfsvers=3') | null |
|
`nfs.volumeName`
| Volume name used inside the pods |
`nfs-subdir-external-provisioner-root`
|
|
`nfs.reclaimPolicy`
| Reclaim policy for the main nfs volume used for subdir provisioning |
`Retain`
|
|
`resources`
| Resources required (e.g. CPU, memory) |
`{}`
|
|
`rbac.create`
| Use Role-based Access Control |
`true`
|
|
`podSecurityPolicy.enabled`
| Create & use Pod Security Policy resources |
`false`
|
|
`podAnnotations`
| Additional annotations for the Pods |
`{}`
|
|
`priorityClassName`
| Set pod priorityClassName | null |
|
`serviceAccount.create`
| Should we create a ServiceAccount |
`true`
|
|
`serviceAccount.name`
| Name of the ServiceAccount to use | null |
|
`serviceAccount.annotations`
| Additional annotations for the ServiceAccount |
`{}`
|
|
`nodeSelector`
| Node labels for pod assignment |
`{}`
|
|
`affinity`
| Affinity settings |
`{}`
|
|
`tolerations`
| List of node taints to tolerate |
`[]`
|
|
`labels`
| Additional labels for any resource created |
`{}`
|
| Parameter | Description | Default |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
|
`replicaCount`
| Number of provisioner instances to deployed |
`1`
|
|
`strategyType`
| Specifies the strategy used to replace old Pods by new ones |
`Recreate`
|
|
`image.repository`
| Provisioner image |
`registry.k8s.io/sig-storage/nfs-subdir-external-provisioner`
|
|
`image.tag`
| Version of provisioner image |
`v4.0.2`
|
|
`image.pullPolicy`
| Image pull policy |
`IfNotPresent`
|
|
`imagePullSecrets`
| Image pull secrets |
`[]`
|
|
`storageClass.name`
| Name of the storageClass |
`nfs-client`
|
|
`storageClass.defaultClass`
| Set as the default StorageClass |
`false`
|
|
`storageClass.allowVolumeExpansion`
| Allow expanding the volume |
`true`
|
|
`storageClass.reclaimPolicy`
| Method used to reclaim an obsoleted volume |
`Delete`
|
|
`storageClass.provisionerName`
| Name of the provisionerName | null |
|
`storageClass.archiveOnDelete`
| Archive PVC when deleting |
`true`
|
|
`storageClass.onDelete`
| Strategy on PVC deletion. Overrides archiveOnDelete when set to lowercase values 'delete' or 'retain' | null |
|
`storageClass.pathPattern`
| Specifies a template for the directory name | null |
|
`storageClass.accessModes`
| Set access mode for PV |
`ReadWriteOnce`
|
|
`storageClass.volumeBindingMode`
| Set volume binding mode for Storage Class |
`Immediate`
|
|
`storageClass.annotations`
| Set additional annotations for the StorageClass |
`{}`
|
|
`leaderElection.enabled`
| Enables or disables leader election |
`true`
|
|
`nfs.server`
| Hostname of the NFS server (required) | null (ip or hostname) |
|
`nfs.path`
| Basepath of the mount point to be used |
`/nfs-storage`
|
|
`nfs.mountOptions`
| Mount options (e.g. 'nfsvers=3') | null |
|
`nfs.volumeName`
| Volume name used inside the pods |
`nfs-subdir-external-provisioner-root`
|
|
`nfs.reclaimPolicy`
| Reclaim policy for the main nfs volume used for subdir provisioning |
`Retain`
|
|
`resources`
| Resources required (e.g. CPU, memory) |
`{}`
|
|
`rbac.create`
| Use Role-based Access Control |
`true`
|
|
`podSecurityPolicy.enabled`
| Create & use Pod Security Policy resources |
`false`
|
|
`podAnnotations`
| Additional annotations for the Pods |
`{}`
|
|
`priorityClassName`
| Set pod priorityClassName | null |
|
`serviceAccount.create`
| Should we create a ServiceAccount |
`true`
|
|
`serviceAccount.name`
| Name of the ServiceAccount to use | null |
|
`serviceAccount.annotations`
| Additional annotations for the ServiceAccount |
`{}`
|
|
`nodeSelector`
| Node labels for pod assignment |
`{}`
|
|
`affinity`
| Affinity settings |
`{}`
|
|
`tolerations`
| List of node taints to tolerate |
`[]`
|
|
`labels`
| Additional labels for any resource created |
`{}`
|
|
`podDisruptionBudget.enabled`
| Create and use Pod Disruption Budget |
`false`
|
|
`podDisruptionBudget.maxUnavailable`
| Set maximum unavailable pods in the Pod Disruption Budget |
`1`
|
## Install Multiple Provisioners
...
...
charts/nfs-subdir-external-provisioner/templates/_helpers.tpl
View file @
c2a2d5d5
...
...
@@ -62,6 +62,17 @@ Return the appropriate apiVersion for podSecurityPolicy.
{{- end -}}
{
{
/*
Return
the
appropriate
apiVersion
for
podDisruptionBudget
.
*/
}
}
{{- define "podDisruptionBudget.apiVersion" -}}
{{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "policy/v1" -}}
{{- else -}}
{{- print "policy/v1beta1" -}}
{{- end -}}
{{- end -}}
{
{
/*
Common
labels
*/
}
}
{{- define "nfs-subdir-external-provisioner.labels" -}}
...
...
charts/nfs-subdir-external-provisioner/templates/poddisruptionbudget.yaml
0 → 100644
View file @
c2a2d5d5
{{
- if .Values.podDisruptionBudget.enabled
}}
apiVersion
:
{{
template "podDisruptionBudget.apiVersion" .
}}
kind
:
PodDisruptionBudget
metadata
:
labels
:
{{
- include "nfs-subdir-external-provisioner.labels" . | nindent 4
}}
name
:
{{
template "nfs-subdir-external-provisioner.fullname" .
}}
spec
:
maxUnavailable
:
{{
.Values.podDisruptionBudget.maxUnavailable | default 1
}}
selector
:
matchLabels
:
{{
- include "nfs-subdir-external-provisioner.selectorLabels" . | nindent 6
}}
{{
- end
}}
charts/nfs-subdir-external-provisioner/values.yaml
View file @
c2a2d5d5
...
...
@@ -108,3 +108,7 @@ affinity: {}
# Additional labels for any resource created
labels
:
{}
podDisruptionBudget
:
enabled
:
false
maxUnavailable
:
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment