kubevirt-tenant-csi-driver

by AppsCode Inc.

Helm chartv0.1.0App v0.1.0Verified publisher

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.

ParameterDescriptionDefault
driver.repositoryquay.io/kubevirt/kubevirt-csi-driver
driver.tagOverrides the image tag whose default is the chart appVersion."latest"
driver.pullPolicyThis sets the pull policy for images.Always
driver.securityContext{"allowPrivilegeEscalation":true,"privileged":true}
driver.resources{"requests":{"cpu":"10m","memory":"50Mi"}}
nodeDriverRegistrar.repositoryquay.io/openshift/origin-csi-node-driver-registrar
nodeDriverRegistrar.tagOverrides the image tag whose default is the chart appVersion."latest"
nodeDriverRegistrar.pullPolicyThis sets the pull policy for images.IfNotPresent
nodeDriverRegistrar.securityContext{}
nodeDriverRegistrar.resources{"requests":{"cpu":"5m","memory":"20Mi"}}
livenessprobe.repositoryquay.io/openshift/origin-csi-livenessprobe
livenessprobe.tagOverrides the image tag whose default is the chart appVersion."latest"
livenessprobe.pullPolicyThis sets the pull policy for images.IfNotPresent
livenessprobe.securityContext{}
livenessprobe.resources{"requests":{"cpu":"5m","memory":"20Mi"}}
snapshotter.replicaCountThis 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"}}
imagePullSecretsThis 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/[]
nameOverrideThis is to override the chart name.""
fullnameOverride""
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.automountAutomatically mount a ServiceAccount's API credentials?true
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use. If not set and create is true, a name is generated using the fullname template""
podAnnotationsThis is for setting Kubernetes Annotations to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/{}
podLabelsThis 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{}
priorityClassNamesystem-node-critical
tenant.namespace""
tenant.labelscsi-driver/cluster=tenant
infra.storageClassNamestandard
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkubevirt-tenant-csi-driver is pinned at v0.1.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