Skip to content

Instantly share code, notes, and snippets.

@pupapaik
Created September 3, 2020 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pupapaik/794bb4221ec71d860163cc22d9f951d6 to your computer and use it in GitHub Desktop.
Save pupapaik/794bb4221ec71d860163cc22d9f951d6 to your computer and use it in GitHub Desktop.
# kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/master/examples/storageclass.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: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment