vsphere-csi

by KubeSphere

Helm chartv2.5.0App 2.7.0Verified publisher

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.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an arrayundefined
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.storageclass.enabledEnable creation of StorageClassfalse
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.netconfigConfigre Network config for Filebased-Volumesundefined

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

NameDescriptionValue
global.config.global.portDefault port to use if not specified different for vCenter443
global.config.global.insecureFlagWeather to default to insecure connections to vCenters by defaulttrue
global.config.vcentervCenter-specifc confgurationundefined
global.config.labelsUsed to configure Toplogy-awarenessundefined

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 objectsundefined
commonAnnotationsAnnotations to add to all deployed objectsundefined
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the releaseundefined

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 sourcesundefined
service.externalTrafficPolicyvsphere-csi service external traffic policyCluster
service.annotationsAdditional custom annotations for vsphere-csi serviceundefined

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"see values.yaml
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)v2.3.0
controller.image.pullPolicycontroller image pull policyIfNotPresent
controller.image.pullSecretscontroller image pull secretsundefined
controller.image.debugEnable image debug modefalse
controller.global.extraEnvVarsArray with extra environment variables for all controller containersundefined
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 containersundefined
controller.resizer.image.registrycontroller.resizer image registryquay.io
controller.resizer.image.repositorycontroller.resizer image repositoryk8scsi/csi-resizer
controller.resizer.image.tagcontroller.resizer image tag (immutable tags are recommended)v1.1.0
controller.resizer.image.pullPolicycontroller.resizer image pull policyIfNotPresent
controller.resizer.image.pullSecretscontroller.resizer image pull secretsundefined
controller.resizer.image.debugEnable image debug modefalse
controller.resizer.lifecycleHooksfor the controller.resizer container(s) to automate configuration before or after startupundefined
controller.extraEnvVarsArray with extra environment variables to add to controller.resizer nodesundefined
controller.resizer.containerSecurityContext.enabledEnabled controller.resizer containers' Security Contextfalse
controller.resizer.containerSecurityContext.runAsUserSet controller.resizer containers' Security Context runAsUser1001
controller.resizer.commandOverride default container command (useful when using custom images)undefined
controller.resizer.argsOverride default container args (useful when using custom images)[]
controller.resizer.extraEnvVarsArray with extra environment variables to add to controller.resizer nodesundefined
controller.resizer.extraEnvVarsCMName of existing ConfigMap containing extra env vars for controller.resizer nodesnil
controller.resizer.extraEnvVarsSecretName of existing Secret containing extra env vars for controller.resizer nodesnil
controller.resizer.resources.limitsThe resources limits for the controller.resizer containersundefined
controller.resizer.resources.requestsThe requested resources for the controller.resizer containersundefined
controller.resizer.livenessProbe.enabledEnable livenessProbe on controller.resizer nodesfalse
controller.resizer.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe

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 v2.5.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