bundle-controller

by KubeGems

Helm chartv1.0.0-alpha1App 1.0.0-alpha1

bundle-controller to install and manage the helm or kustomize bundle

About this chart

bundle-controller

Helm chart for the bundle-controller.

TL;DR

helm install bundle-controller ./charts/bundle-controller

Introduction

A controller manage helm charts and kustomize in kubernetes operator ways.

Prerequisites

  • Kubernetes 1.21+

Installing the Chart

To install the chart:

helm install bundle-controller ./charts/bundle-controller

The command deploys bundle-controller on the Kubernetes cluster in the default configuration.

The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete bundle-controller

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

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.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

bundle Parameters

NameDescriptionValue
bundle.image.registrybundle image registrydocker.io
bundle.image.repositorybundle image repositorykubegems/bundle-controller
bundle.image.tagbundle image tag (immutable tags are recommended)latest
bundle.image.pullPolicybundle image pull policyIfNotPresent
bundle.image.pullSecretsbundle image pull secrets[]
bundle.image.debugEnable bundle image debug modefalse
bundle.replicaCountNumber of bundle replicas to deploy1
bundle.containerPorts.probebundle probe container port8080
bundle.livenessProbe.enabledEnable livenessProbe on bundle containerstrue
bundle.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe5
bundle.livenessProbe.periodSecondsPeriod seconds for livenessProbe10
bundle.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
bundle.livenessProbe.failureThresholdFailure threshold for livenessProbe6
bundle.livenessProbe.successThresholdSuccess threshold for livenessProbe1
bundle.readinessProbe.enabledEnable readinessProbe on bundle containerstrue
bundle.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
bundle.readinessProbe.periodSecondsPeriod seconds for readinessProbe10
bundle.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
bundle.readinessProbe.failureThresholdFailure threshold for readinessProbe6
bundle.readinessProbe.successThresholdSuccess threshold for readinessProbe1
bundle.startupProbe.enabledEnable startupProbe on bundle containersfalse
bundle.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe5
bundle.startupProbe.periodSecondsPeriod seconds for startupProbe10
bundle.startupProbe.timeoutSecondsTimeout seconds for startupProbe5
bundle.startupProbe.failureThresholdFailure threshold for startupProbe6
bundle.startupProbe.successThresholdSuccess threshold for startupProbe1
bundle.customLivenessProbeCustom livenessProbe that overrides the default one{}
bundle.customReadinessProbeCustom readinessProbe that overrides the default one{}
bundle.customStartupProbeCustom startupProbe that overrides the default one{}
bundle.resources.limitsThe resources limits for the bundle containers{}
bundle.resources.requestsThe requested resources for the bundle containers{}
bundle.podSecurityContext.enabledEnabled bundle pods' Security Contextfalse
bundle.podSecurityContext.fsGroupSet bundle pod's Security Context fsGroup1001
bundle.containerSecurityContext.enabledEnabled bundle containers' Security Contextfalse
bundle.containerSecurityContext.runAsUserSet bundle containers' Security Context runAsUser1001
bundle.containerSecurityContext.runAsNonRootSet bundle containers' Security Context runAsNonRoottrue
bundle.leaderElection.enabledEnable leader electiontrue
bundle.logLevelLog leveldebug
bundle.existingConfigmapThe name of an existing ConfigMap with your custom configuration for bundle""
bundle.commandOverride default container command (useful when using custom images)[]
bundle.argsOverride default container args (useful when using custom images)[]
bundle.hostAliasesbundle pods host aliases[]
bundle.podLabelsExtra labels for bundle pods{}
bundle.podAnnotationsAnnotations for bundle pods{}
bundle.podAffinityPresetPod affinity preset. Ignored if bundle.affinity is set. Allowed values: soft or hard""
bundle.podAntiAffinityPresetPod anti-affinity preset. Ignored if bundle.affinity is set. Allowed values: soft or hardsoft
bundle.nodeAffinityPreset.typeNode affinity preset type. Ignored if bundle.affinity is set. Allowed values: soft or hard""
bundle.nodeAffinityPreset.keyNode label key to match. Ignored if bundle.affinity is set""
bundle.nodeAffinityPreset.valuesNode label values to match. Ignored if bundle.affinity is set[]
bundle.enableAffinityIf enabled Affinity for bundle pods assignmentfalse
bundle.affinityAffinity for bundle pods assignment{}
bundle.nodeSelectorNode labels for bundle pods assignment{}
bundle.tolerationsTolerations for bundle pods assignment[]
bundle.updateStrategy.typebundle statefulset strategy typeRollingUpdate
bundle.priorityClassNamebundle pods' priorityClassName""
bundle.schedulerNameName of the k8s scheduler (other than default) for bundle pods""
bundle.lifecycleHooksfor the bundle container(s) to automate configuration before or after startup{}
bundle.extraEnvVarsArray with extra environment variables to add to bundle nodes[]
bundle.extraEnvVarsCMName of existing ConfigMap containing extra env va

Deploy bundle-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bundle-controller 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 chartbundle-controller is pinned at v1.0.0-alpha1 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