kubevirt-tenant-csi-driver
A Helm chart for KubeVirt tenant csi-driver
About this chart
KubeVirt tenant CSI driver
KubeVirt tenant CSI driver by AppsCode - A Helm chart for KubeVirt tenant CSI driver
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/kubevirt-tenant-csi-driver --version=v0.1.0
$ helm upgrade -i kubevirt-tenant-csi-driver appscode/kubevirt-tenant-csi-driver -n kubevirt-csi-driver --create-namespace --version=v0.1.0
Introduction
This chart deploys a CSI driver on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.28+
Installing the Chart
To install/upgrade the chart with the release name kubevirt-tenant-csi-driver:
$ helm upgrade -i kubevirt-tenant-csi-driver appscode/kubevirt-tenant-csi-driver -n kubevirt-csi-driver --create-namespace --version=v0.1.0
The command deploys a CSI driver on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the kubevirt-tenant-csi-driver:
$ helm uninstall kubevirt-tenant-csi-driver -n kubevirt-csi-driver
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the kubevirt-tenant-csi-driver chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| driver.repository | quay.io/kubevirt/kubevirt-csi-driver | |
| driver.tag | Overrides the image tag whose default is the chart appVersion. | "latest" |
| driver.pullPolicy | This sets the pull policy for images. | Always |
| driver.securityContext | {"allowPrivilegeEscalation":true,"privileged":true} | |
| driver.resources | {"requests":{"cpu":"10m","memory":"50Mi"}} | |
| nodeDriverRegistrar.repository | quay.io/openshift/origin-csi-node-driver-registrar | |
| nodeDriverRegistrar.tag | Overrides the image tag whose default is the chart appVersion. | "latest" |
| nodeDriverRegistrar.pullPolicy | This sets the pull policy for images. | IfNotPresent |
| nodeDriverRegistrar.securityContext | {} | |
| nodeDriverRegistrar.resources | {"requests":{"cpu":"5m","memory":"20Mi"}} | |
| livenessprobe.repository | quay.io/openshift/origin-csi-livenessprobe | |
| livenessprobe.tag | Overrides the image tag whose default is the chart appVersion. | "latest" |
| livenessprobe.pullPolicy | This sets the pull policy for images. | IfNotPresent |
| livenessprobe.securityContext | {} | |
| livenessprobe.resources | {"requests":{"cpu":"5m","memory":"20Mi"}} | |
| snapshotter.replicaCount | This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ | 2 |
| snapshotter.repository | -- Image repository for the default container. | registry.k8s.io/sig-storage/snapshot-controller |
| snapshotter.tag | -- (string) Image tag for the default container; this will default to .Chart.AppVersion if not set. | v6.3.1 |
| snapshotter.pullPolicy | -- Image pull policy for the default container. | IfNotPresent |
| snapshotter.securityContext | {} | |
| snapshotter.resources | {"requests":{"cpu":"10m","memory":"50Mi"}} | |
| imagePullSecrets | This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | [] |
| nameOverride | This is to override the chart name. | "" |
| fullnameOverride | "" | |
| serviceAccount.create | Specifies whether a service account should be created | true |
| serviceAccount.automount | Automatically mount a ServiceAccount's API credentials? | true |
| serviceAccount.annotations | Annotations to add to the service account | {} |
| serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | "" |
| podAnnotations | This is for setting Kubernetes Annotations to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ | {} |
| podLabels | This is for setting Kubernetes Labels to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ | {} |
| podSecurityContext | {} | |
| nodeSelector | {} | |
| tolerations | [{"operator":"Exists"}] | |
| affinity | {} | |
| priorityClassName | system-node-critical | |
| tenant.namespace | "" | |
| tenant.labels | csi-driver/cluster=tenant | |
| infra.storageClassName | standard | |
| infra.snapshotClassName | "" |
Specify each parameter using the `--set key=
Deploy kubevirt-tenant-csi-driver with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubevirt-tenant-csi-driver 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubevirt-tenant-csi-driver is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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