vsphere-csi

by MaxRink

Helm chartv3.8.1App 3.5.0

A Helm chart for vSphere CSI Driver

About this chart

vSphere TMM Helm Charts

WARNING: v1.x.x of this Helm chart contains breaking changes! While it is possible to deploy CPI directly with this chart, beware of the resulting naming and complexity.

The Namespace for vSphere CSI in upstream has changed with version 2.3.0, its is now vmware-system-csi instead of kube-system. This chart should be unaffected, as you can freely change the Namespace.

Adding this helm repository

To add the helm repository for the vSphere CSI driver, run the following commands:

helm repo add vsphere-tmm https://vsphere-tmm.github.io/helm-charts
helm search repo vsphere-csi

values.yaml files for the charts can be found in the charts/[chartname] directories.

TL;DR

$ helm repo add vsphere-tmm https://vsphere-tmm.github.io/helm-charts
$ helm install my-release vsphere-tmm/vsphere-csi

Introduction

Unofficial repository of helm charts created by the vSphere Technical Marketing team.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0

Installing the Chart

To install the chart with the release name my-release:

helm install my-release vsphere-tmm/vsphere-csi

The command deploys vsphere-csi on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.modeString one of full, management, workloadfull
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)nil
global.logLevelGlobal logLevel for CSI, can be PRODUCTION or DEVELOPMENTPRODUCTION

global.config Global Configuration for both CPI and CSI

NameDescriptionValue
global.config.csidriver.enabledEnable CSI-Drivertrue
global.config.existingSecretUse existing secret for csi-vsphere.confnil
global.config.storageclass.enabledEnable creation of StorageClassfalse
global.config.storageclass.nameSet storageClass namevsphere-csi
global.config.storageclass.storagepolicynameSet storagePolicyName""
global.config.storageclass.expansionEnable VolumeExpansion for storageclass, see https://vsphere-csi-driver.sigs.k8s.io/features/volume_expansion.htmlfalse
global.config.storageclass.defaultMake created storageClass defaultfalse
global.config.storageclass.reclaimPolicySet reclaimPolicy for storageclassDelete
global.config.netconfigConfigure Network config for Filebased-Volumes{}

global.config.global Global properties in this section will be used for all specified vCenters unless overridden in VirtualCenter section.

NameDescriptionValue
global.config.global.portDefault port to use if not specified different for vCenter443
global.config.global.insecure-flagWhether to default to insecure connections to vCenters by defaulttrue
global.config.vcentervCenter-specific configuration{}
global.config.labelsUsed to configure Toplogy-awareness{}

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes versionnil
nameOverrideString to partially override common.names.fullnamenil
fullnameOverrideString to fully override common.names.fullnamenil
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]

Traffic Exposure Parameters

NameDescriptionValue
service.typevsphere-csi service typeClusterIP
service.portvsphere-csi service HTTP port80
service.httpsPortvsphere-csi service HTTPS port443
service.nodePorts.httpNode port for HTTPnil
service.nodePorts.httpsNode port for HTTPSnil
service.clusterIPvsphere-csi service Cluster IPnil
service.loadBalancerIPvsphere-csi service Load Balancer IPnil
service.loadBalancerSourceRangesvsphere-csi service Load Balancer sources[]
service.externalTrafficPolicyvsphere-csi service external traffic policyCluster
service.annotationsAdditional custom annotations for vsphere-csi service{}

controller Parameters

NameDescriptionValue
controller.namename used for the deployment, if unset defaults to "{{ template "common.names.fullname" . }}"vsphere-csi-controller
controller.configblock to freely define options for the controller configmap{}
controller.image.registrycontroller image registrygcr.io
controller.image.repositorycontroller image repositorycloud-provider-vsphere/csi/release/driver
controller.image.tagcontroller image tag (immutable tags are recommended)v3.5.0
controller.image.pullPolicycontroller image pull policyIfNotPresent
controller.image.pullSecretscontroller image pull secrets[]
controller.image.debugEnable image debug modefalse
controller.csiNamespaceCSI namespace (only relevant when global.mode is management)nil
controller.global.extraEnvVarsArray with extra environment variables for all controller containers[]
controller.global.extraEnvVarsCMName of existing ConfigMap containing extra env vars for all controller containersnil
controller.global.extraEnvVarsSecretName of existing Secret containing extra env vars for all controller containersnil
controller.global.extraVolumeMountsOptionally specify extra list of additional volumeMounts for all controller containers

Deploy vsphere-csi with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vsphere-csi 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 chartvsphere-csi is pinned at v3.8.1 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