Skip to content

Instantly share code, notes, and snippets.

@saiyam1814
Created February 21, 2021 08:43
Show Gist options
  • Save saiyam1814/101e28bd28f3359d7591e6d9761f505b to your computer and use it in GitHub Desktop.
Save saiyam1814/101e28bd28f3359d7591e6d9761f505b to your computer and use it in GitHub Desktop.
Longhorn
curl -sfL https://get.k3s.io | sh -
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.1.0/deploy/longhorn.yaml
kubectl edit svc longhorn-frontend -n longhorn-system
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
kubectl patch storageclass longhorn -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment