example: Update storageclass.yaml
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: longhorn-storageclass
+ namespace: longhorn-system
+data:
+ storageclass.yaml: |
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn
provisioner: driver.longhorn.io
allowVolumeExpansion: true
+ reclaimPolicy: Delete
+ volumeBindingMode: Immediate
parameters:
- numberOfReplicas: "3"
- staleReplicaTimeout: "2880" # 48 hours in minutes
+ numberOfReplicas: "2"
+ staleReplicaTimeout: "2880"
fromBackup: ""
+ # backingImage: "bi-test"
+ # backingImageURL: "https://backing-image-example.s3-region.amazonaws.com/test-backing-image"
# diskSelector: "ssd,fast"
# nodeSelector: "storage,fast"
# recurringJobs: '[{"name":"snap", "task":"snapshot", "cron":"*/1 * * * *", "retain":1},
