capi-kamaji-vsphere

by Clastix

Helm chartv0.3.0App 1.32.0Verified publisher

A Helm chart for deploying a Kamaji Tenant Cluster on vSphere using Cluster API and Kamaji.

About this chart

capi-kamaji-vsphere

A Helm chart for deploying a Kamaji Tenant Cluster on vSphere using Cluster API and Kamaji.

Homepage: https://kamaji.clastix.io

Maintainers

NameEmailUrl
Clastix Labs[email protected]

Source Code

Values

KeyTypeDefaultDescription
cluster.clusterNetwork.apiServerPortint6443API Server port
cluster.clusterNetwork.pods.cidrBlockslist["10.93.0.0/16"]CIDR range for pods
cluster.clusterNetwork.serviceDomainstring"cluster.local"Service Domain for cluster DNS
cluster.clusterNetwork.services.cidrBlockslist["10.96.0.0/16"]CIDR range for services
cluster.controlPlane.addonsobject{"coreDNS":{},"konnectivity":{},"kubeProxy":{}}Configure addons for the control plane
cluster.controlPlane.addons.coreDNSobject{}CoreDNS addon configuration
cluster.controlPlane.addons.konnectivityobject{}Konnectivity addon configuration
cluster.controlPlane.addons.kubeProxyobject{}Kube-proxy addon configuration
cluster.controlPlane.apiServerobject{"extraArgs":[]}extraArgs for the control plane components
cluster.controlPlane.controllerManager.extraArgs[0]string"--cloud-provider=external"
cluster.controlPlane.dataStoreNamestring"default"KamajiControlPlane dataStoreName
cluster.controlPlane.deploymentobject{"additionalMetadata":{"annotations":{},"labels":{}},"affinity":{},"nodeSelector":{"kubernetes.io/os":"linux"},"podAdditionalMetadata":{"annotations":{},"labels":{}},"tolerations":[],"topologySpreadConstraints":[]}Configure how KamajiControlPlane deployment should be done
cluster.controlPlane.deployment.additionalMetadataobject{"annotations":{},"labels":{}}Additional metadata as labels and annotations
cluster.controlPlane.deployment.affinityobject{}Affinity scheduling rules
cluster.controlPlane.deployment.nodeSelectorobject{"kubernetes.io/os":"linux"}NodeSelector for scheduling
cluster.controlPlane.deployment.podAdditionalMetadataobject{"annotations":{},"labels":{}}Pods Additional metadata as labels and annotations
cluster.controlPlane.deployment.tolerationslist[]Tolerations for scheduling
cluster.controlPlane.deployment.topologySpreadConstraintslist[]TopologySpreadConstraints for scheduling
cluster.controlPlane.kubelet.cgroupfsstring"systemd"kubelet cgroupfs configuration
cluster.controlPlane.labelsobject{"cni":"calico"}Labels to add to the control plane
cluster.controlPlane.network.certSANslist[]List of additional Subject Alternative Names to use for the API Server serving certificate
cluster.controlPlane.network.serviceAddressstring""Address used to expose the Kubernetes API server. If not set, the service will be exposed on the first available address.
cluster.controlPlane.network.serviceAnnotationsobject{}Annotations to use for the control plane service
cluster.controlPlane.network.serviceLabelsobject{}Labels to use for the control plane service
cluster.controlPlane.network.serviceTypestring"LoadBalancer"Type of service used to expose the Kubernetes API server
cluster.controlPlane.replicasint2Number of control plane replicas
cluster.controlPlane.scheduler.extraArgslist[]
cluster.controlPlane.versionstring"v1.32.0"Kubernetes version
cluster.metrics.enabledboolfalseEnable metrics collection. ServiceMonitor custom resource definition must be installed on the Management cluster.
cluster.metrics.serviceAccountobject{"name":"kube-prometheus-stack-prometheus","namespace":"monitoring-system"}ServiceAccount for scraping metrics
cluster.metrics.serviceAccount.namestring"kube-prometheus-stack-prometheus"ServiceAccount name used for scraping metrics
cluster.metrics.serviceAccount.namespacestring"monitoring-system"ServiceAccount namespace
cluster.namestring""Cluster name. If unset, the release name will be used
ipamProvider.enabledbooltrueEnable the IPAMProvider usage
ipamProvider.gatewaystring"192.168.0.1"IPAMProvider gateway
ipamProvider.prefixstring"24"IPAMProvider prefix
ipamProvider.rangeslist["192.168.0.0/24"]IPAMProvider ranges
nodePools[0].addressesFromPoolsobject{"enabled":true}Use an IPAMProvider pool to reserve IPs
nodePools[0].addressesFromPools.enabledbooltrueEnable the IPAMProvider usage
nodePools[0].autoscaling.enabledboolfalseEnable autoscaling
nodePools[0].autoscaling.labelsobject{}Labels added to the MachineDeployment, e.g. to match the Cluster Autoscaler autoDiscovery.labels
nodePools[0].autoscaling.maxSizestring"6"Maximum number of instances in the pool
nodePools[0].autoscaling.minSizestring"2"Minimum number of instances in the pool
nodePools[0].dataStorestring"datastore"VSphere datastore to use
nodePools[0].dhcp4boolfalseUse dhcp for ipv4 configuration
nodePools[0].diskGiBint40Disk size of VM in GiB
nodePools[0].folderstring"default-pool"VSphere folder to store VMs
nodePools[0].memoryMiBint4096Memory to allocate to worker VMs
nodePools[0].namestring"default"
nodePools[0].nameServerslist["8.8.8.8"]Nameservers for VMs DNS resolution if required
nodePools[0].networkstring"network"VSphere network for VMs and CSI
nodePools[0].numCPUsint2Number of vCPUs to allocate to worker instances
nodePools[0].postKubeadmCommandslist[]Post kubeadm commands to run on the machines
nodePools[0].preKubeadmCommandslist["hostnamectl set-hostname \"{{ ds.meta_data.hostname }}\"","echo \"::1 ipv6-localhost ipv6-loopback localhost6 localhost6.localdomain6\" >/etc/hosts","echo \"127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4\" >>/etc/hosts"]Pre kubeadm commands to run on the machines
nodePools[0].replicasint3Number of worker VMs instances. Ignored when autoscaling is enabled: the Cluster Autoscaler manages the count, starting from minSize
nodePools[0].resourcePoolstring"*/Resources"VSphere resource pool to use
nodePools[0].staticRouteslist[]Static network routes if required
nodePools[0].storagePolicyNamestring""VSphere storage policy to use
nodePools[0].templatestring"ubuntu-2404-kube-v1.32.0"VSphere template to clone
nodePools[0].userslist[{"lockPassword":true,"name":"ubuntu","shell":"/bin/bash","sshAuthorizedKeys":[],"sudo":"ALL=(ALL) NOPASSWD:ALL"}]users to create on machines
nodePools[0].users[0]object{"lockPassword":true,"name":"ubuntu","shell":"/bin/bash","sshAuthorizedKeys":[],"sudo":"ALL=(ALL) NOPASSWD:ALL"}username to create
nodePools[0].users[0].lockPasswordbooltrueLock login password
nodePools[0].users[0].shellstring"/bin/bash"SSH shell to use
nodePools[0].users[0].sshAuthorizedKeyslist[]SSH public key to add
nodePools[0].users[0].sudostring"ALL=(ALL) NOPASSWD:ALL"sudoers configuration
vSphere.caFilestring""Path to the CA file if it has been mounted into the pod.
vSphere.dataCenterstring"datacenter"Datacenter to use
vSphere.identityRefobject{"name":"vsphere-cluster-identity","type":"VSphereClusterIdentity"}VSphere Identity Management
vSphere.identityRef.namestring"vsphere-cluster-identity"Specifies the name of the VSphereClusterIdentity or Secret
vSphere.identityRef.typestring"VSphereClusterIdentity"Specifies whether use VSphereClusterIdentity or Secret
vSphere.insecureboolfalseIf vCenter uses a self-signed cert
vSphere.portint443VSphere server port
vSphere.serverstring"server.sample.org"VSphere server dns name or address
vSphere.tlsThumbprintstring""VSphere https TLS thumbprint
vSphereCloudControllerManager.additionalMetadata.annotationsobject{}
vSphereCloudControllerManager.additionalMetadata.labelsobject{}
vSphereCloudControllerManager.affinityobject{}Affinity scheduling rules
vSphereCloudControllerManager.imageobject{"pullPolicy":"IfNotPresent","registry":"registry.k8s.io","repository":"cloud-pv-vsphere/cloud-provider-vsphere","tag":"v1.32.0"}Image of the vsphere-cloud-controller-manager to install.
vSphereCloudControllerManager.image.pullPolicystring"IfNotPresent"Set the image pull policy.
vSphereCloudControllerManager.image.registrystring"registry.k8s.io"Set the image registry
vSphereCloudControllerManager.image.repositorystring"cloud-pv-vsphere/cloud-provider-vsphere"Set the image repository
vSphereCloudControllerManager.image.tagstring"v1.32.0"The tag should be equivalent to the upstream Kubernetes version.
vSphereCloudControllerManager.nodeSelectorobject{"kubernetes.io/os":"linux"}NodeSelector for scheduling
vSphereCloudControllerManager.podAdditionalMetadataobject{"annotations":{},"labels":{}}Pods Additional metadata as labels and annotations
vSphereCloudControllerManager.secret.namestring"vsphere-config-secret"The name of an existing Secret to access the vCenter API
vSphereCloudControllerManager.tolerationslist[]Tolerations for scheduling
vSphereCloudControllerManager.topologyobject{"region":"k8s-region","zone":"k8s-zone"}Labels for toplogy regions and zones
vSphereCloudControllerManager.topologySpreadConstraintslist[]TopologySpreadConstraints for scheduling

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy capi-kamaji-vsphere with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has capi-kamaji-vsphere 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 chartcapi-kamaji-vsphere is pinned at v0.3.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