kubegems-local

by KubeGems

Helm chartv1.24.10App 1.24.10

KubeGems cluster agent components

About this chart

kubegems-local

KubeGems local components.(check existing examples)

TL;DR

$ helm repo add kubegems https://charts.kubegems.io/kubegems
$ helm install my-release kubegems/kubegems-local

Introduction

kubegems local components.

Prerequisites

  • Kubernetes 1.18+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name my-release:

helm install my-release kubegems/kubegems-local

The command deploys kubegems-local 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 my-release

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)""
global.kubegemsVersionKubegems version""

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 the deployment(s)/statefulset(s)["sleep"]
diagnosticMode.argsArgs to override all containers in the the deployment(s)/statefulset(s)["infinity"]

Agent Parameters

NameDescriptionValue
agent.image.registryagent image registrydocker.io
agent.image.repositoryagent image repositorykubegems/kubegems
agent.image.tagagent image tag (immutable tags are recommended)main
agent.image.pullPolicyagent image pull policyIfNotPresent
agent.image.pullSecretsagent image pull secrets[]
agent.image.debugEnable agent image debug modefalse
agent.replicaCountNumber of agent replicas to deploy1
agent.containerPorts.httpagent HTTP container port8080
agent.livenessProbe.enabledEnable livenessProbe on agent containerstrue
agent.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe10
agent.livenessProbe.periodSecondsPeriod seconds for livenessProbe20
agent.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe1
agent.livenessProbe.failureThresholdFailure threshold for livenessProbe6
agent.livenessProbe.successThresholdSuccess threshold for livenessProbe1
agent.readinessProbe.enabledEnable readinessProbe on agent containerstrue
agent.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe10
agent.readinessProbe.periodSecondsPeriod seconds for readinessProbe20
agent.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
agent.readinessProbe.failureThresholdFailure threshold for readinessProbe6
agent.readinessProbe.successThresholdSuccess threshold for readinessProbe1
agent.startupProbe.enabledEnable startupProbe on agent containersfalse
agent.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe10
agent.startupProbe.periodSecondsPeriod seconds for startupProbe20
agent.startupProbe.timeoutSecondsTimeout seconds for startupProbe1
agent.startupProbe.failureThresholdFailure threshold for startupProbe6
agent.startupProbe.successThresholdSuccess threshold for startupProbe1
agent.customLivenessProbeCustom livenessProbe that overrides the default one{}
agent.customReadinessProbeCustom readinessProbe that overrides the default one{}
agent.customStartupProbeCustom startupProbe that overrides the default one{}
agent.resources.limitsThe resources limits for the agent containers{}
agent.resources.requestsThe requested resources for the agent containers{}
agent.podSecurityContext.enabledEnabled agent pods' Security Contexttrue
agent.podSecurityContext.fsGroupSet agent pod's Security Context fsGroup1001
agent.containerSecurityContext.enabledEnabled agent containers' Security Contexttrue
agent.containerSecurityContext.runAsUserSet agent containers' Security Context runAsUser1001
agent.containerSecurityContext.runAsNonRootSet agent containers' Security Context runAsNonRoottrue
agent.tls.enabledEnable agent http listen TLStrue
agent.tls.useCertManagerusing cert manager to generate tls secret,if not using self-signed certificates if not existsfalse
agent.tls.secretNamecustomize default tls secret name""
agent.httpSignature.enabledEnable agent HTTP Signature validationtrue
agent.httpSignature.tokenHTTP Signature encode token override""
agent.logLevelSet log levelinfo
agent.existingConfigmapThe name of an existing ConfigMap with your custom configuration for agent""
agent.commandOverride default container command (useful when using custom images)[]
agent.argsOverride default container args (useful when using custom images)[]
agent.hostAliasesagent pods host aliases[]
agent.podLabelsExtra labels for agent pods{}
agent.podAnnotationsAnnotations for agent pods{}
agent.podAffinityPresetPod affinity preset. Ignored if agent.affinity is set. Allowed values: soft or hard""
agent.podAntiAffinityPresetPod anti-affinity preset. Ignored if agent.affinity is set. Allowed values: soft or hardsoft
agent.nodeAffinityPreset.typeNode affinity preset type. Ignored if agent.affinity is set. Allowed values: soft or hard""
agent.nodeAffinityPreset.keyNode label key to match. Ignored if agent.affinity is set""
agent.nodeAffinityPreset.valuesNode label values to match. Ignored if agent.affinity is set[]
agent.affinityAffinity for agent pods assignment{}
agent.nodeSelectorNode labels for agent pods assignment{}
agent.tolerationsTolerations for agent pods assignment[]
agent.updateStrategy.typeagent statefulset strategy typeRollingUpdate
agent.priorityClassNameagent pods' priorityClassName""
agent.schedulerNameName of the k8s scheduler (other than default) for agent pods""
agent.lifecycleHooksfor the agent container(s) to automate configuration before or after startup{}
agent.extraEnvVarsArray with extra environment variables to add to agent nodes[]
agent.extraEnvVarsCMName of existing ConfigMap containing extra env vars for agent nodes

Deploy kubegems-local with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubegems-local 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 chartkubegems-local is pinned at v1.24.10 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