cluster-registry

by Cisco

Helm chartv0.2.12App v0.2.12Apache-2.0

Cluster registry controller for K8s

About this chart

Cluster-registry chart

The cluster registry controller helps to form a group of Kubernetes clusters and synchronize any K8s resources across those clusters arbitrarily.

Prerequisites

  • Helm3

Installing the chart

To install the chart:

❯ helm repo add cluster-registry https://cisco-open.github.io/cluster-registry-controller
❯ helm install --namespace=cluster-registry --create-namespace cluster-registry cluster-registry/cluster-registry --set localCluster.name=primary

Uninstalling the Chart

To uninstall/delete the cluster-registry release:

❯ helm uninstall cluster-registry

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

Configuration

The following table lists the configurable parameters of the Cluster Registry chart and their default values.

ParameterDescriptionDefault
replicasOperator deployment replica count1
localCluster.nameSpecify to automatically provision the cluster object with this name upon first start""
localCluster.manageSecretIf true, automatically provisions the secret for the K8s API server access"true"
istio.revisionSets the istio.io/rev label on the deployment""
podAnnotationsOperator deployment pod annotations (YAML){}
imagePullSecretsOperator deployment image pull secrets[]
podSecurityContextOperator deployment pod security context (YAML)runAsUser: 65534, runAsGroup: 65534
securityContextOperator deployment security context (YAML)allowPrivilegeEscalation: false
image.repositoryOperator container image repositoryghcr.io/cisco-open/cluster-registry-controller
image.tagOperator container image tagv0.2.12
image.pullPolicyOperator container image pull policyIfNotPresent
nodeselectorOperator deployment node selector (YAML){}
affinityOperator deployment affinity (YAML){}
tolerationsOperator deployment tolerations[]
resourcesCPU/Memory resource requests/limits (YAML)Requests: Memory: 100Mi, CPU: 100m, Limits: Memory: 200Mi, CPU: 300m
service.typeOperator service type"ClusterIP"
service.portOperator service port8080
serviceAccount.annotationsOperator service account annotations (YAML){}
podDisruptionBudget.enabledIf true, PodDisruptionBudget is deployed for the operatorfalse
controller.leaderElection.enabledIf true, leader election is enabled for the operator deploymenttrue
controller.leaderElection.nameName override for the leader election configmapcluster-registry-leader-election
controller.log.formatFormat for controller logs"json"
controller.log.verbosityVerbosity for controller logs0
controller.workersNumber of workers2
controller.apiServerEndpointAddressAddress of the cluster's K8s API server, which is publicly or from the specified network""
controller.network.nameName of the network where the cluster is reachable"default"
controller.coreResourceSource.enabledIf true, the core resources (Cluster, ResourceSyncRule, secrets) could be synced from this clustertrue

Deploy cluster-registry with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-registry 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 chartcluster-registry is pinned at v0.2.12 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