Mohammed Naser | 1581a35 | 2023-04-17 02:28:10 +0000 | [diff] [blame] | 1 | # Default values for local-path-provisioner. |
| 2 | |
| 3 | replicaCount: 1 |
| 4 | |
| 5 | image: |
| 6 | repository: rancher/local-path-provisioner |
| 7 | tag: v0.0.24 |
| 8 | pullPolicy: IfNotPresent |
| 9 | |
| 10 | helperImage: |
| 11 | repository: busybox |
| 12 | tag: latest |
| 13 | |
| 14 | defaultSettings: |
| 15 | registrySecret: ~ |
| 16 | |
| 17 | privateRegistry: |
| 18 | registryUrl: ~ |
| 19 | registryUser: ~ |
| 20 | registryPasswd: ~ |
| 21 | |
| 22 | imagePullSecrets: [] |
| 23 | nameOverride: "" |
| 24 | fullnameOverride: "" |
| 25 | |
| 26 | ## For creating the StorageClass automatically: |
| 27 | storageClass: |
| 28 | create: true |
| 29 | |
| 30 | ## Set a provisioner name. If unset, a name will be generated. |
| 31 | # provisionerName: rancher.io/local-path |
| 32 | |
| 33 | ## Set StorageClass as the default StorageClass |
| 34 | ## Ignored if storageClass.create is false |
| 35 | defaultClass: false |
| 36 | |
| 37 | ## Set a StorageClass name |
| 38 | ## Ignored if storageClass.create is false |
| 39 | name: local-path |
| 40 | |
| 41 | ## ReclaimPolicy field of the class, which can be either Delete or Retain |
| 42 | reclaimPolicy: Delete |
| 43 | |
| 44 | # nodePathMap is the place user can customize where to store the data on each node. |
| 45 | # 1. If one node is not listed on the nodePathMap, and Kubernetes wants to create volume on it, the paths specified in |
| 46 | # DEFAULT_PATH_FOR_NON_LISTED_NODES will be used for provisioning. |
| 47 | # 2. If one node is listed on the nodePathMap, the specified paths will be used for provisioning. |
| 48 | # 1. If one node is listed but with paths set to [], the provisioner will refuse to provision on this node. |
| 49 | # 2. If more than one path was specified, the path would be chosen randomly when provisioning. |
| 50 | # |
| 51 | # The configuration must obey following rules: |
| 52 | # 1. A path must start with /, a.k.a an absolute path. |
| 53 | # 2. Root directory (/) is prohibited. |
| 54 | # 3. No duplicate paths allowed for one node. |
| 55 | # 4. No duplicate node allowed. |
| 56 | nodePathMap: |
| 57 | - node: DEFAULT_PATH_FOR_NON_LISTED_NODES |
| 58 | paths: |
| 59 | - /opt/local-path-provisioner |
| 60 | |
| 61 | # `sharedFileSystemPath` allows the provisioner to use a filesystem that is mounted on all |
| 62 | # nodes at the same time. In this case all access modes are supported: `ReadWriteOnce`, |
| 63 | # `ReadOnlyMany` and `ReadWriteMany` for storage claims. In addition |
| 64 | # `volumeBindingMode: Immediate` can be used in StorageClass definition. |
| 65 | # Please note that `nodePathMap` and `sharedFileSystemPath` are mutually exclusive. |
| 66 | # If `sharedFileSystemPath` is used, then `nodePathMap` must be set to `[]`. |
| 67 | # sharedFileSystemPath: "" |
| 68 | |
| 69 | resources: {} |
| 70 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 71 | # choice for the user. This also increases chances charts run on environments with little |
| 72 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 73 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 74 | # limits: |
| 75 | # cpu: 100m |
| 76 | # memory: 128Mi |
| 77 | # requests: |
| 78 | # cpu: 100m |
| 79 | # memory: 128Mi |
| 80 | |
| 81 | rbac: |
| 82 | # Specifies whether RBAC resources should be created |
| 83 | create: true |
| 84 | |
| 85 | serviceAccount: |
| 86 | # Specifies whether a ServiceAccount should be created |
| 87 | create: true |
| 88 | # The name of the ServiceAccount to use. |
| 89 | # If not set and create is true, a name is generated using the fullname template |
| 90 | name: |
| 91 | |
| 92 | nodeSelector: {} |
| 93 | |
| 94 | tolerations: [] |
| 95 | |
| 96 | affinity: {} |
| 97 | |
| 98 | configmap: |
| 99 | # specify the config map name |
| 100 | name: local-path-config |
| 101 | # specify the custom script for setup and teardown |
| 102 | setup: |- |
| 103 | #!/bin/sh |
| 104 | set -eu |
| 105 | mkdir -m 0777 -p "$VOL_DIR" |
| 106 | teardown: |- |
| 107 | #!/bin/sh |
| 108 | set -eu |
| 109 | rm -rf "$VOL_DIR" |
| 110 | |
| 111 | # Number of provisioner worker threads to call provision/delete simultaneously. |
| 112 | # workerThreads: 4 |
| 113 | |
| 114 | # Number of retries of failed volume provisioning. 0 means retry indefinitely. |
| 115 | # provisioningRetryCount: 15 |
| 116 | |
| 117 | # Number of retries of failed volume deletion. 0 means retry indefinitely. |
| 118 | # deletionRetryCount: 15 |