kubevirt-cloud-controller-manager

by christianhuth

Helm chartv0.1.1App 0.6.0Verified publisher

Kubernetes cloud-provider for KubeVirt

About this chart

kubevirt-cloud-controller-manager

Kubernetes cloud-provider for KubeVirt

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kubevirt-cloud-controller-manager

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kubevirt-cloud-controller-manager

Introduction

This chart installs the KubeVirt Cloud Provider using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+

Installing the Chart

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

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kubevirt-cloud-controller-manager

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kubevirt-cloud-controller-manager

These commands deploy the KubeVirt Cloud Provider on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

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

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
autoscaling.enabledboolfalseEnable Horizontal POD autoscaling
autoscaling.maxReplicasint100Maximum number of replicas
autoscaling.minReplicasint1Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
deploymentStrategyobject{}Update strategy for the deployment
extraEnvlist[]additional environment variables to be added to the pods
fullnameOverridestring""String to fully override "kubevirt-cloud-controller-manager.fullname"
image.pullPolicystring"Always"image pull policy
image.registrystring"quay.io"image registory
image.repositorystring"kubevirt/kubevirt-cloud-controller-manager"image repository
image.tagstring"v0.6.0"Overrides the image tag
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
kccm.additionalLabels.enabledbooltrueAdds additional capi labels to the cloud controller manager resources
kccm.cloudConfig.instancesV2.enabledbooltrueWhether to use the instancesV2 API for listing and watching instances. This is required for OpenShift 4.13 and later.
kccm.cloudConfig.instancesV2.zoneAndRegionEnabledboolfalseWhether to use the zone and region information from the instance metadata. This is required for OpenShift 4.13 and later.
kccm.cloudConfig.loadBalancer.creationPollIntervalint5The interval at which the cloud controller manager polls for the creation of load balancers
kccm.cloudConfig.loadBalancer.creationPollTimeoutint60The timeout for polling for the creation of load balancers
kccm.cluster.kubeconfig.content.cluster.castring""The base64-encoded value of the cluster CA
kccm.cluster.kubeconfig.content.cluster.serverstring""The address of the CAPI api server in the form https://:
kccm.cluster.kubeconfig.content.users.certstring""The base64-encoded value of the user certificate
kccm.cluster.kubeconfig.content.users.keystring""The base64-encoded value of the user key
kccm.cluster.kubeconfig.createboolfalsecreate a Secret for the kubeconfig created through the values defined in kccm.cluster.kubeconfig.content.*
kccm.cluster.kubeconfig.existingSecretstring""The name of the secret containing the kubeconfig to access the CAPI cluster. If not set, will default to "-kubeconfig"
kccm.cluster.namestring""The name of the cluster to which the cloud controller manager belongs. This is used by the cloud controller manager to watch for changes to the cluster object and update its status accordingly.
kccm.cluster.namespacestring""The namespace in which the cloud controller manager should watch for changes to the cluster object. If not set, the cloud controller manager will watch for changes to the cluster object in the Release namespace.
kccm.deploymentModestring"isolated"Indicates whether the cloud controller manager is installed outside of the managed cluster (isolated) or inside
nameOverridestring""Provide a name in place of kubevirt-cloud-controller-manager
nodeSelectorobject{"node-role.kubernetes.io/control-plane":""}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to exporter pods
podSecurityContextobject{}pod-level security context
replicaCountint1Number of replicas
resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}Resource limits and requests for the pods.
revisionHistoryLimitint0The number of old ReplicaSets to retain
securityContextobject{"privileged":true}container-level security context
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[{"effect":"NoSchedule","key":"node.cloudprovider.kubernetes.io/uninitialized","value":"true"},{"effect":"NoSchedule","key":"node-role.kubernetes.io/control-plane"}]Toleration labels for pod assignment

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml christianhuth/kubevirt-cloud-controller-manager

Deploy kubevirt-cloud-controller-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubevirt-cloud-controller-manager 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-cloud-controller-manager is pinned at v0.1.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