snapshot-controller

by democratic-csi

Helm chartv0.3.0App 8.2.1MITVerified publisher

csi snapshot-controller

About this chart

snapshot-controller

Snapshot Controller is a csi component that should be installed once per cluster to enable snapshot support for all csi drivers.

usage

helm repo add democratic-csi https://democratic-csi.github.io/charts/
helm repo update

helm upgrade --install --namespace kube-system --create-namespace snapshot-controller democratic-csi/snapshot-controller
kubectl -n kube-system logs -f -l app=snapshot-controller

development

# get latest crds
# https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd
cd crds
for file in snapshot.storage.k8s.io_volumesnapshotclasses.yaml snapshot.storage.k8s.io_volumesnapshotcontents.yaml snapshot.storage.k8s.io_volumesnapshots.yaml; do
  wget -O "${file}" "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/client/config/crd/${file}"
done

helm template --namespace kube-system snapshot-controller .

links

  • https://kubernetes-csi.github.io/docs/snapshot-controller.html
  • https://github.com/kubernetes-csi/external-snapshotter
  • https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/webhook-example
  • https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/snapshot-controller
  • https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd

Deploy snapshot-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has snapshot-controller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsnapshot-controller is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply