vsphere-csi
by MaxRink
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
| Name | Description | Value |
|---|---|---|
global.mode | String one of full, management, workload | full |
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | nil |
global.logLevel | Global logLevel for CSI, can be PRODUCTION or DEVELOPMENT | PRODUCTION |
global.config Global Configuration for both CPI and CSI
| Name | Description | Value |
|---|---|---|
global.config.csidriver.enabled | Enable CSI-Driver | true |
global.config.existingSecret | Use existing secret for csi-vsphere.conf | nil |
global.config.storageclass.enabled | Enable creation of StorageClass | false |
global.config.storageclass.name | Set storageClass name | vsphere-csi |
global.config.storageclass.storagepolicyname | Set storagePolicyName | "" |
global.config.storageclass.expansion | Enable VolumeExpansion for storageclass, see https://vsphere-csi-driver.sigs.k8s.io/features/volume_expansion.html | false |
global.config.storageclass.default | Make created storageClass default | false |
global.config.storageclass.reclaimPolicy | Set reclaimPolicy for storageclass | Delete |
global.config.netconfig | Configure 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.
| Name | Description | Value |
|---|---|---|
global.config.global.port | Default port to use if not specified different for vCenter | 443 |
global.config.global.insecure-flag | Whether to default to insecure connections to vCenters by default | true |
global.config.vcenter | vCenter-specific configuration | {} |
global.config.labels | Used to configure Toplogy-awareness | {} |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | nil |
nameOverride | String to partially override common.names.fullname | nil |
fullnameOverride | String to fully override common.names.fullname | nil |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
Traffic Exposure Parameters
| Name | Description | Value |
|---|---|---|
service.type | vsphere-csi service type | ClusterIP |
service.port | vsphere-csi service HTTP port | 80 |
service.httpsPort | vsphere-csi service HTTPS port | 443 |
service.nodePorts.http | Node port for HTTP | nil |
service.nodePorts.https | Node port for HTTPS | nil |
service.clusterIP | vsphere-csi service Cluster IP | nil |
service.loadBalancerIP | vsphere-csi service Load Balancer IP | nil |
service.loadBalancerSourceRanges | vsphere-csi service Load Balancer sources | [] |
service.externalTrafficPolicy | vsphere-csi service external traffic policy | Cluster |
service.annotations | Additional custom annotations for vsphere-csi service | {} |
controller Parameters
| Name | Description | Value |
|---|---|---|
controller.name | name used for the deployment, if unset defaults to "{{ template "common.names.fullname" . }}" | vsphere-csi-controller |
controller.config | block to freely define options for the controller configmap | {} |
controller.image.registry | controller image registry | gcr.io |
controller.image.repository | controller image repository | cloud-provider-vsphere/csi/release/driver |
controller.image.tag | controller image tag (immutable tags are recommended) | v3.5.0 |
controller.image.pullPolicy | controller image pull policy | IfNotPresent |
controller.image.pullSecrets | controller image pull secrets | [] |
controller.image.debug | Enable image debug mode | false |
controller.csiNamespace | CSI namespace (only relevant when global.mode is management) | nil |
controller.global.extraEnvVars | Array with extra environment variables for all controller containers | [] |
controller.global.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for all controller containers | nil |
controller.global.extraEnvVarsSecret | Name of existing Secret containing extra env vars for all controller containers | nil |
controller.global.extraVolumeMounts | Optionally 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvsphere-csi is pinned at v3.8.1 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