hnc

by jouve

Helm chartv0.8.3App v1.1.0GPL-3.0-or-laterVerified publisher

Hierarchical Namespace Controller (HNC). Policies and delegated creation to Kubernetes namespaces.

About this chart

hnc

Hierarchical Namespace Controller (HNC). Policies and delegated creation to Kubernetes namespaces.

usage

helm repo add jouve https://jouve.github.io/charts/

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.name""
fullnameOverrideString to fully override common.names.fullname""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local

HNC parameters

NameDescriptionValue
architectureAllowed values: standalone or replicationstandalone
webhookServer.replicaCountNumber of replicas to deploy when architecture == replication3
excludedNamespacesAddition excluded namespaces[]
hrq.enabledEnable Hierarchical Resource Quotafalse
managedNamespaceLabelsManaged namespace labels[]
managedNamespaceAnnotationsManaged Namespace Annotations[]
certManager.enabledUse Cert-Manager for webhook certsfalse
certManager.issuerRefCert-Manager issuer to use for webhook certs (self signed cert used if not specified){}
image.registryimage registrygcr.io
image.repositoryimage repositoryk8s-staging-multitenancy/hnc-manager
image.tagimage tag (immutable tags are recommended)v1.1.0
image.digestimage digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended)""
image.pullPolicyimage pull policyIfNotPresent
image.pullSecretsimage pull secrets[]
resources.limitsThe resources limits for the containers{}
resources.requestsThe requested resources for the containers{}
podLabelsExtra labels for pods{}
podAnnotationsAnnotations for pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
affinityAffinity for pods assignment{}
nodeSelectorNode labels for pods assignment{}

Traffic Exposure Parameters

NameDescriptionValue
hostNetworkSpecify if host network should be enabledfalse
service.annotationsAdditional custom annotations for service{}
metrics.enabledEnable the export of Prometheus metricstrue
metrics.serviceMonitor.enabledif true, creates a Prometheus Operator ServiceMonitor (also requires metrics.enabled to be true)false
extraDeployArray of extra objects to deploy with the release[]

Deploy hnc with OpenTenant

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