k8s:services:local_storage_provider
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| k8s:services:local_storage_provider [2024/09/01 21:38] – admin | k8s:services:local_storage_provider [2024/09/01 22:36] (current) – admin | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| sudo systemctl enable " | sudo systemctl enable " | ||
| sudo systemctl start " | sudo systemctl start " | ||
| + | ``` | ||
| + | Add the `sig-storage-local-static-provisioner` | ||
| + | ```yaml | ||
| + | apiVersion: catalog.cattle.io/ | ||
| + | kind: ClusterRepo | ||
| + | metadata: | ||
| + | name: sig-storage-local-static-provisioner | ||
| + | spec: | ||
| + | url: https:// | ||
| ``` | ``` | ||
| `values.yaml` (also for rancher app) | `values.yaml` (also for rancher app) | ||
| ```yaml | ```yaml | ||
| + | additionalVolumeMounts: | ||
| + | additionalVolumes: | ||
| + | affinity: {} | ||
| classes: | classes: | ||
| - blockCleanerCommand: | - blockCleanerCommand: | ||
| - | - /scripts/blkdiscard.sh | + | - /scripts/shred.sh |
| - ' | - ' | ||
| fsType: ext4 | fsType: ext4 | ||
| Line 46: | Line 58: | ||
| namePattern: | namePattern: | ||
| volumeMode: Filesystem | volumeMode: Filesystem | ||
| - | storageClass: | + | enableWindows: false |
| - | common: | + | fullnameOverride: '' |
| - | additionalHostPathVolumes: | + | image: |
| - | mountDevVolume: | + | initContainers: |
| - | rbac: | + | mountDevVolume: |
| - | create: true | + | nameOverride: |
| - | pspEnabled: false | + | nodeSelector: |
| - | | + | nodeSelectorWindows: |
| - | | + | podAnnotations: |
| - | name: storage-local-static-provisioner | + | podLabels: {} |
| - | setPVOwnerRef: | + | privileged: |
| - | useAlphaAPI: | + | rbac: |
| - | useJobForCleaning: | + | |
| - | useNodeNameOnly: | + | resources: {} |
| - | configMapName: | + | serviceAccount: |
| - | podSecurityPolicy: | + | |
| - | daemonset: | + | |
| - | affinity: {} | + | |
| - | | + | |
| - | initContainers: | + | |
| - | nodeSelector: | + | |
| - | podAnnotations: | + | |
| - | podLabels: {} | + | |
| - | privileged: | + | |
| - | resources: {} | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| serviceMonitor: | serviceMonitor: | ||
| additionalLabels: | additionalLabels: | ||
| Line 80: | Line 81: | ||
| namespace: null | namespace: null | ||
| relabelings: | relabelings: | ||
| - | prometheus: | + | setPVOwnerRef: false |
| - | | + | tolerations: [] |
| - | | + | useJobForCleaning: false |
| - | | + | useNodeNameOnly: false |
| - | | + | ``` |
| - | | + | Now the DeamonSet created with this chart waits for a storage class. Import that using the following K8s definition: |
| - | | + | ```yaml |
| - | | + | apiVersion: storage.k8s.io/ |
| + | kind: StorageClass | ||
| + | metadata: | ||
| + | name: local-disks | ||
| + | provisioner: | ||
| + | reclaimPolicy: | ||
| + | volumeBindingMode: | ||
| ``` | ``` | ||
k8s/services/local_storage_provider.1725219499.txt.gz · Last modified: by admin