Author: Sheng Yang <sheng.yang@rancher.com> Date: Sat Feb 29 18:29:21 2020 -0800 example: Explain the magic number of staleReplicaTimeout Signed-off-by: Sheng Yang <sheng.yang@rancher.com> Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
16 lines
531 B
YAML
16 lines
531 B
YAML
kind: StorageClass
|
|
apiVersion: storage.k8s.io/v1
|
|
metadata:
|
|
name: longhorn
|
|
provisioner: driver.longhorn.io
|
|
allowVolumeExpansion: true
|
|
parameters:
|
|
numberOfReplicas: "3"
|
|
staleReplicaTimeout: "2880" # 48 hours in minutes
|
|
fromBackup: ""
|
|
# diskSelector: "ssd,fast"
|
|
# nodeSelector: "storage,fast"
|
|
# recurringJobs: '[{"name":"snap", "task":"snapshot", "cron":"*/1 * * * *", "retain":1},
|
|
# {"name":"backup", "task":"backup", "cron":"*/2 * * * *", "retain":1,
|
|
# "labels": {"interval":"2m"}}]'
|