I can't find a single "spec" for the parameters, so I figure it's best to explain it in the examples and documentation. Signed-off-by: ted <ted@timmons.me>
15 lines
504 B
YAML
15 lines
504 B
YAML
kind: StorageClass
|
|
apiVersion: storage.k8s.io/v1
|
|
metadata:
|
|
name: longhorn
|
|
provisioner: driver.longhorn.io
|
|
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"}}]'
|