kubernetes
by kvaps
Production-Grade Container Scheduling and Management
About this chart
Kubernetes-in-Kubernetes
Deploy Kubernetes in Kubernetes using Helm
Requirements
- Kubernetes v1.21+
- Helm v3
- cert-manager v1.0.0+
Quick Start
Preparation
-
Install cert-manager.
-
If you running over minikube you might also need to install a provisioner, you can use local-path-provisioner for example.
Installation
helm repo add kvaps https://kvaps.github.io/charts
helm install foo kvaps/kubernetes --version 0.13.5 \
--namespace foo \
--create-namespace \
--set persistence.storageClassName=local-path
Cleanup
kubectl delete namespace foo
Usage
Kubernetes-in-Kubernetes is just a control plane, in most cases it's useless without workers.
If you're looking for a real use case, check out the following projects that implement worker nodes management:
- Kubefarm - Automated Kubernetes deployment and the PXE-bootable servers farm
Deploy kubernetes with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubernetes 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 chartkubernetes is pinned at v0.13.5 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