vcluster
Virtual Kubernetes Cluster
About this chart
Vcluster
This Chart is under active development! We try to improve documentation and values consistency over time
Virtual Kubernetes Cluster
Homepage: https://artifacthub.io/packages/helm/kvaps/kubernetes
Maintainers
| Name | Url | |
|---|---|---|
| Bedag Informatik AG | [email protected] |
Major Changes
Major Changes to functions are documented with the version affected. Before upgrading the dependency version, check this section out!
| Change | Chart Version | Description | Commits/PRs |
|---|---|---|---|
Guides
Components
This chart contains different "components" (it's different tools which make up the control plane).
The purpose of the combination if these tools is to achieve a control plane, which is easy to manage and does not
relay on worker nodes to be managed. But we also do not intend to add a lot of complexity to the control plane.
All the components are deployed as pods in the hosting cluster and are toggled by the enabled flag.
Kubernetes
Installs the required components to provide a Kubernetes Control Plane (hosted in pods). The implementation is based on Kuebrnetes by Kvaps, who came uup with this great idea.
Machine Controller
We recommend using our set version and configured flags
The Machine-Controller by Kubermatic.
Operating System Manager
We recommend using our set version and configured flags. The component is not stable tested yet!
The Operating System Manager by Kubermatic is responsible for creating and managing the required configurations for worker nodes in a Kubernetes cluster. It decouples operating system configurations into dedicated and isolable resources for better modularity and maintainability. It's optional and only works together with Machine Controller. If you enable this component, we will take care of the configuration between Machine-Controller and Operating System Manager.
Kubernetes
Installs the required components to provide a Kubernetes Control Plane (hosted in pods). The implementation is based on Kuebrnetes by Kvaps, who came uup with this great idea.
Kubernetes Autoscaler
Based on Cluster Autoscaler.
Allows to scale Kubernetes clusters based on the number of pods and nodes.
The component is deployed as a single deployment with a controller container. Since it's deployed on a hosting cluster, it's possible to downscale workers to zero and scale up again.
Guides
Exposure
Admission
Values
Globals
Global Values
| Key | Type | Default | Description |
|---|---|---|---|
| global.components.exposure.certificates.issuer.kind | string | "Issuer" | Set if the cert manager will generate either self-signed or CA signed SSL certificates. Its value will be either Issuer or ClusterIssuer |
| global.components.exposure.certificates.issuer.name | string | "" | Set the name of the ClusterIssuer if issuer kind is ClusterIssuer and if cert manager will generate CA signed SSL certificates |
| global.components.exposure.certificates.issuer.selfSigned | bool | true | Creates self-signed Issuer |
| global.components.exposure.certificates.secretName | string | "" | Uses Existing Secret for all certificates |
| global.components.exposure.expose | string | "loadbalancer" | Define how admission webhooks are expose (ingress or loadbalancer). Overwrites expose for all admission webhooks. |
| global.components.exposure.ingress.annotations | object | {} | Common annotations for admission ingresses |
| global.components.exposure.ingress.host | string | "{{ include \"pkg.cluster.name\" $ }}.example.com" | Host for admission ingresses (admission endpoints are exposed via path). supports templating |
| global.components.exposure.ingress.ingressClassName | string | "" | Ingressclass for admission ingresses |
| global.components.exposure.ingress.port | int | 443 | Port for Ingresses |
| global.components.metrics | object | {} | |
| global.components.networkPolicy.enabled | bool | false | Enable NetworkPolicies |
| global.components.networkPolicy.from | list | [] | Add from block for networkPolicies (by default from anywhere) |
| global.components.service.annotations | object | {} | Annotations for all services |
| global.components.service.labels | object | {} | Labels for all services |
| global.components.workloads.affinity | object | {} | Affinity for all workloads (Overwrites all workloads affinities) |
| global.components.workloads.annotations | object | {} | Annotations for all workloads (merged with workload annotations) |
| global.components.workloads.image.pullPolicy | string | "" | Overwrites Pull Policy for all components |
| global.components.workloads.image.pullSecrets | list | [] | Additional image pull secrets for all components |
| global.components.workloads.labels | object | {} | Labels for all workloads (merged with workload labels) |
| global.components.workloads.nodeSelector | object | {} | Node Selector for all workloads (Overwrites all workloads nodeSelector) |
| global.components.workloads.podAnnotations | object | {} | Pod Annotations for all workloads (merged with workload podAnnotations) |
| global.components.workloads.podLabels | object | {} | Pod Labels for all workloads (merged with workload podLabels) |
| global.components.workloads.podSecurityContext | object | {"enabled":false} | Pod Security Context for all workloads (Overwrites per workload podSecurityContext) |
| global.components.workloads.priorityClassName | string | "" | Priority Class for all workloads (Overwrites all workloads priorityClassNames) |
| global.components.workloads.securityContext | object | {"enabled":false} | Container Security Context for all workloads (Overwrites per workload securityContext) |
| global.components.workloads.tolerations | list | [] | Tolerations for all workloads (Overwrites all workloads tolerations) |
| global.components.workloads.topologySpreadConstraints | list | [] | TopologySpreadConstraints for all workloads (Overwrites all workloads topologySpreadConstraints) |
| global.proxy.host | string | "" | Proxy Host |
| global.proxy.no_proxy | string | "10.0.0.0/8" | No Proxy Hosts |
| global.registries.primary | object | {"creds":{"password":"","username":""},"endpoint":""} | Default Registry (used for kubeadm, regcred secret etc.) |
| global.registries.primary.creds.password | string | "" | Registry Password |
| global.registries.primary.creds.username | string | "" | Registry Username |
| global.registries.primary.endpoint | string | "" | Registry Endpoint |
| global.registries.secondaries | object | {} | Additional Registries (used in regcred secret) |
| global.storageClassName | string | "" | StorageClassName for all persistent volumes |
Utilities Values
| Key | Type | Default | Description |
|---|---|---|---|
| cluster.name | string | The cluster name is derived from the .Release.Name | Define the cluster name |
| cluster.properties | object | {} | Properties are substituted into the gitops component |
Lifecycle
We use a lifecycle Job/Cronjob to manage certain configurations within the vcluster and the hosting cluster.
| Key | Type | Default | Description |
|---|---|---|---|
| lifecycle.argocd.namespace | string | "argocd" | Installation namespace of ArgoCD |
| lifecycle.argocd.rbac | bool | true | Creates required rbac in argoCD namespace to create cluster secrets |
| lifecycle.cilium.bgpControlPlane | object | {"enabled":true} | Enable BGP Control Plane feature |
| lifecycle.cilium.devices | string | "" | Specify which network interfaces can run the eBPF datapath |
| lifecycle.cilium.enabled | bool | true | Install Cilium CNI |
| lifecycle.cilium.on_install | bool | true | Install only on chart install (First install) |
| lifecycle.cilium.version | string | "1.9.18" | Cilium version |
| lifecycle.cleanup.annotations | object | {"helm.sh/hook":"pre-delete","helm.sh/hook-delete-policy":"before-hook-creation"} | Job Annotations |
| lifecycle.cleanup.enabled | bool | false | Enable/Disable Cleanup |
| lifecycle.cleanup.labels | object | {} | Job Labels |
| lifecycle.current.extraManifests | object | See values.yaml | These manifests will be applied inside the cluster (supports templating) |
| lifecycle.current.extraManifestsOnInstall | object | See values.yaml | These manifests will be applied inside the cluster, but only on $.Release.Install and wont be touched again (supports templating) |
| lifecycle.jobs.affinity | object | {} | Affinity |
| lifecycle.jobs.connectivity.image.digest | string | "" | Image Digest |
| lifecycle.jobs.connectivity.image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| lifecycle.jobs.connectivity.image.pullSecrets | list | [] | Image pull Secrets |
| lifecycle.jobs.connectivity.image.registry | string | "ghcr.io" | Image registry |
| lifecycle.jobs.connectivity.image.repository | string | "kvaps/kubernetes-tools" | Image repository |
| lifecycle.jobs.connectivity.image.tag | string | "v0.13.4" | Image tag |
| lifecycle.jobs.connectivity.resources | object | {} | Resources configuration |
| lifecycle.jobs.connectivity.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"enabled":true,"privileged":false,"runAsGroup":20000,"runAsUser":20000} | Container Security Context |
| lifecycle.jobs.extraEnv | list | [] | Additional Pod Environment variables |
| lifecycle.jobs.extraVolumeMounts | list | [] | Additional Pod VolumeMounts |
| lifecycle.jobs.extraVolumes | list | [] | Additional Pod Volumes |
| lifecycle.jobs.nodeSelector | object | {} | Node Selector |
| lifecycle.jobs.podAnnotations | object | {} | Pod Annotations |
| lifecycle.jobs.podLabels | object | {} | Pod Labels |
| lifecycle.jobs.podSecurityContext | object | {"enabled":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Pod Security Context |
| lifecycle.jobs.priorityClassName | string | "" | Pod PriorityClassName |
| lifecycle.jobs.resources | object | {} | Resources configuration |
| lifecycle.jobs.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"enabled":true,"privileged":false,"runAsGroup":20000,"runAsUser":20000} | Container Security Context |
| lifecycle.jobs.tolerations | list | [] | Tolerations |
| lifecycle.jobs.topologySpreadConstraints | list | [] | TopologySpreadConstraints |
| lifecycle.serviceAccount.annotations | object | {} | Annotations to add to the service account |
| lifecycle.serviceAccount.create | bool | true | Specifies whether a service account should be created |
| lifecycle.serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| lifecycle.setup.annotations | object | {"helm.sh/hook":"post-install,post-upgrade","helm.sh/hook-delete-policy":"before-hook-creation"} | Job Annotations |
| lifecycle.setup.cronjob | bool | true | Deploy as Cronjob to run periodically |
| lifecycle.setup.failedJobsHistoryLimit | int | 3 | Cronjob failed jobs history limit |
| lifecycle.setup.injectProxy | bool | true | Inject Proxy as Environment Variables |
| lifecycle.setup.labels | object | {} | Job Labels |
| lifecycle.setup.schedule | string | "0 0 1 */6 *" | Cronjob Schedule |
| lifecycle.setup.successfulJobsHistoryLimit | int | 3 | Cronjob successful jobs history limit |
| lifecycle.setup.ttlSecondsAfterFinished | int | 120 | ttlSecondsAfterFinished for setup |
| lifecycle.vcluster.extraOnlineManifests | list | [] | List of URLs which will be applied inside the vcluster (supports templating) |
| lifecycle.vcluster.extraOnlineManifestsOnInstall | list | [] | List of URLs which will be applied inside the vcluster, but only on $.Release.Install and wont be touched again (supports templating) |
Machine Values
Available Values for the Machine Controller Component. The component consists of a single deployment with a controller and admission container. Pod settings are therefor made for both subcomponents.
| Key | Type | Default | Description |
|---|---|---|---|
| machine.affinity | object | {} | Affinity |
| machine.annotations | object | {} | Annotations for Workload |
| machine.autoscaling.enabled | bool | false | Enable Horizontal Pod Autoscaler |
| machine.autoscaling.maxReplicas | int | 100 | Maximum available Replicas |
| machine.autoscaling.minReplicas | int | 1 | Minimum available Replicas |
| machine.autoscaling.targetCPUUtilizationPercentage | int | 80 | Benchmark CPU Usage |
| machine.autoscaling.targetMemoryUtilizationPercentage | string | nil | Benchmark Memory Usage |
| machine.component.ensureManifestsOnStartup | bool | true | Ensure all components manifests are present on controller start (as initContainer) |
| machine.component.removeManifestsOnDisable | bool | true | Remove all manifests on disable in the vcluster (Attention: When crds are deleted all crs will be deleted as well) |
| machine.connectivity.image.digest | string | "" | Image Digest |
| machine.connectivity.image.pullPolicy | string | `"IfNotPr |
Deploy vcluster with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vcluster 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 chartvcluster is pinned at v0.17.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