add units for the staleReplicaTimeout

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>
This commit is contained in:
ted 2019-11-23 11:45:43 -08:00 committed by Sheng Yang
parent 73c7c5e6fc
commit ed02804b20
4 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ metadata:
provisioner: driver.longhorn.io provisioner: driver.longhorn.io
parameters: parameters:
numberOfReplicas: "3" numberOfReplicas: "3"
staleReplicaTimeout: "2880" staleReplicaTimeout: "2880" # 48 hours in minutes
fromBackup: "" fromBackup: ""
# diskSelector: "ssd,fast" # diskSelector: "ssd,fast"
# nodeSelector: "storage,fast" # nodeSelector: "storage,fast"

View File

@ -49,7 +49,7 @@ spec:
fsType: ext4 fsType: ext4
volumeAttributes: volumeAttributes:
numberOfReplicas: <replicas> # must match Longhorn volume value numberOfReplicas: <replicas> # must match Longhorn volume value
staleReplicaTimeout: '30' staleReplicaTimeout: '30' # in minutes
volumeHandle: statefulset-vol-0 # must match volume name from Longhorn volumeHandle: statefulset-vol-0 # must match volume name from Longhorn
storageClassName: longhorn # must be same name that we will use later storageClassName: longhorn # must be same name that we will use later
--- ---

View File

@ -36,7 +36,7 @@ metadata:
provisioner: rancher.io/longhorn provisioner: rancher.io/longhorn
parameters: parameters:
numberOfReplicas: "3" numberOfReplicas: "3"
staleReplicaTimeout: "480" staleReplicaTimeout: "480" # 8 hours in minutes
diskSelector: "ssd" diskSelector: "ssd"
nodeSelector: "storage,fast" nodeSelector: "storage,fast"
``` ```

View File

@ -5,7 +5,7 @@ metadata:
provisioner: driver.longhorn.io provisioner: driver.longhorn.io
parameters: parameters:
numberOfReplicas: "3" numberOfReplicas: "3"
staleReplicaTimeout: "2880" staleReplicaTimeout: "2880" # 48 hours in minutes
fromBackup: "" fromBackup: ""
# diskSelector: "ssd,fast" # diskSelector: "ssd,fast"
# nodeSelector: "storage,fast" # nodeSelector: "storage,fast"