openunison-k8s-add-cluster
This chart adds a new cluster to an OpenUnison deployment for management and SSO
About this chart
Adding a Cluster to OpenUnison Orchestra
Cluster Management
Management Proxy
Service Account
Certificate
GitOps
Cluster Repo
The cluster repository is sued tos tore cluster resources that developers should not have the ability to change. For instance Namespace objects. When onboarding a new namespace, OpenUnison will write cluster level objects to this repository.
Create SSH Keypair
ssh-keygen -f ./id_rsa
Upload id_rsa.pub to your root git repo, make sure to mark the key as able to write to the repo. Also connect your repo to your cluster using your favorite GitOps system.
Next, create a secret in the openunison namespace with your keys with the name sshkey-cluster-CLUSTER_NAME where CLUSTER_NAME is the name of your cluster defined in cluster.name value of your values.yaml for onboarding the cluster to OpenUnison. For instance if your cluster.name is gitops you would create the secret with the command (in the same directory you created your keys in):
kubectl create secret generic sshkey-cluster-k8s-gitops --from-file=. -n openunison
Deploy openunison-k8s-add-cluster with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openunison-k8s-add-cluster 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 chartopenunison-k8s-add-cluster is pinned at v1.0.26 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