kubegems-local
by KubeGems
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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
global.kubegemsVersion | Kubegems version | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the the deployment(s)/statefulset(s) | ["sleep"] |
diagnosticMode.args | Args to override all containers in the the deployment(s)/statefulset(s) | ["infinity"] |
Agent Parameters
| Name | Description | Value |
|---|---|---|
agent.image.registry | agent image registry | docker.io |
agent.image.repository | agent image repository | kubegems/kubegems |
agent.image.tag | agent image tag (immutable tags are recommended) | main |
agent.image.pullPolicy | agent image pull policy | IfNotPresent |
agent.image.pullSecrets | agent image pull secrets | [] |
agent.image.debug | Enable agent image debug mode | false |
agent.replicaCount | Number of agent replicas to deploy | 1 |
agent.containerPorts.http | agent HTTP container port | 8080 |
agent.livenessProbe.enabled | Enable livenessProbe on agent containers | true |
agent.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 10 |
agent.livenessProbe.periodSeconds | Period seconds for livenessProbe | 20 |
agent.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 1 |
agent.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
agent.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
agent.readinessProbe.enabled | Enable readinessProbe on agent containers | true |
agent.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
agent.readinessProbe.periodSeconds | Period seconds for readinessProbe | 20 |
agent.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 1 |
agent.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 6 |
agent.readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
agent.startupProbe.enabled | Enable startupProbe on agent containers | false |
agent.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 10 |
agent.startupProbe.periodSeconds | Period seconds for startupProbe | 20 |
agent.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 1 |
agent.startupProbe.failureThreshold | Failure threshold for startupProbe | 6 |
agent.startupProbe.successThreshold | Success threshold for startupProbe | 1 |
agent.customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
agent.customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
agent.customStartupProbe | Custom startupProbe that overrides the default one | {} |
agent.resources.limits | The resources limits for the agent containers | {} |
agent.resources.requests | The requested resources for the agent containers | {} |
agent.podSecurityContext.enabled | Enabled agent pods' Security Context | true |
agent.podSecurityContext.fsGroup | Set agent pod's Security Context fsGroup | 1001 |
agent.containerSecurityContext.enabled | Enabled agent containers' Security Context | true |
agent.containerSecurityContext.runAsUser | Set agent containers' Security Context runAsUser | 1001 |
agent.containerSecurityContext.runAsNonRoot | Set agent containers' Security Context runAsNonRoot | true |
agent.tls.enabled | Enable agent http listen TLS | true |
agent.tls.useCertManager | using cert manager to generate tls secret,if not using self-signed certificates if not exists | false |
agent.tls.secretName | customize default tls secret name | "" |
agent.httpSignature.enabled | Enable agent HTTP Signature validation | true |
agent.httpSignature.token | HTTP Signature encode token override | "" |
agent.logLevel | Set log level | info |
agent.existingConfigmap | The name of an existing ConfigMap with your custom configuration for agent | "" |
agent.command | Override default container command (useful when using custom images) | [] |
agent.args | Override default container args (useful when using custom images) | [] |
agent.hostAliases | agent pods host aliases | [] |
agent.podLabels | Extra labels for agent pods | {} |
agent.podAnnotations | Annotations for agent pods | {} |
agent.podAffinityPreset | Pod affinity preset. Ignored if agent.affinity is set. Allowed values: soft or hard | "" |
agent.podAntiAffinityPreset | Pod anti-affinity preset. Ignored if agent.affinity is set. Allowed values: soft or hard | soft |
agent.nodeAffinityPreset.type | Node affinity preset type. Ignored if agent.affinity is set. Allowed values: soft or hard | "" |
agent.nodeAffinityPreset.key | Node label key to match. Ignored if agent.affinity is set | "" |
agent.nodeAffinityPreset.values | Node label values to match. Ignored if agent.affinity is set | [] |
agent.affinity | Affinity for agent pods assignment | {} |
agent.nodeSelector | Node labels for agent pods assignment | {} |
agent.tolerations | Tolerations for agent pods assignment | [] |
agent.updateStrategy.type | agent statefulset strategy type | RollingUpdate |
agent.priorityClassName | agent pods' priorityClassName | "" |
agent.schedulerName | Name of the k8s scheduler (other than default) for agent pods | "" |
agent.lifecycleHooks | for the agent container(s) to automate configuration before or after startup | {} |
agent.extraEnvVars | Array with extra environment variables to add to agent nodes | [] |
agent.extraEnvVarsCM | Name 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubegems-local is pinned at v1.24.10 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