kubectl
by kubelauncher
Helm chartv0.3.2App 1.37.1Apache-2.0Verified publisher
Kubectl CLI utility container for Kubernetes jobs and CronJobs
About this chart
kubectl
Kubectl CLI utility container for Kubernetes jobs and CronJobs
TL;DR
helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-job kubelauncher/kubectl \
--set command='{kubectl}' \
--set args='{get,pods,-A}'
Or via OCI:
helm install my-job oci://ghcr.io/kubelauncher/charts/kubectl \
--set command='{kubectl}' \
--set args='{get,pods,-A}'
Introduction
This chart deploys a kubectl utility container as a Job or CronJob on Kubernetes using the kubelauncher/kubectl Docker image. Includes RBAC support, yq, jq, and git.
Set schedule to create a CronJob instead of a one-shot Job.
Installing the Chart
helm repo add kubelauncher https://kubelauncher.github.io/charts
# One-shot job
helm install my-job kubelauncher/kubectl \
--set command='{kubectl}' \
--set args='{get,namespaces}'
# CronJob
helm install my-cron kubelauncher/kubectl \
--set schedule="0 */6 * * *" \
--set command='{kubectl}' \
--set args='{get,pods,-A}'
Or via OCI:
helm install my-job oci://ghcr.io/kubelauncher/charts/kubectl \
--set command='{kubectl}' \
--set args='{get,namespaces}'
Uninstalling the Chart
helm uninstall my-job
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| args | list | [] | |
| backoffLimit | int | 3 | |
| command | list | [] | |
| commonAnnotations | object | {} | |
| commonLabels | object | {} | |
| containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| containerSecurityContext.capabilities.drop[0] | string | "ALL" | |
| containerSecurityContext.enabled | bool | true | |
| containerSecurityContext.readOnlyRootFilesystem | bool | false | |
| containerSecurityContext.runAsGroup | int | 1001 | |
| containerSecurityContext.runAsNonRoot | bool | true | |
| containerSecurityContext.runAsUser | int | 1001 | |
| containerSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| enableServiceLinks | bool | false | |
| extraEnvVars | list | [] | |
| extraVolumeMounts | list | [] | |
| extraVolumes | list | [] | |
| fullnameOverride | string | "" | |
| global.imagePullSecrets | list | [] | |
| global.imageRegistry | string | "" | |
| image.digest | string | "sha256:2a5b40c827ab9e05ae66ee174660f9ce34e12e9e8799d0ad06b7564554fac175" | |
| image.pullPolicy | string | "Always" | |
| image.pullSecrets | list | [] | |
| image.registry | string | "ghcr.io" | |
| image.repository | string | "kubelauncher/kubectl" | |
| image.tag | string | "1.37.1" | |
| nameOverride | string | "" | |
| namespaceOverride | string | "" | |
| networkPolicy.additionalRules | list | [] | |
| networkPolicy.allowExternal | bool | true | |
| networkPolicy.enabled | bool | false | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| podSecurityContext.enabled | bool | true | |
| podSecurityContext.fsGroup | int | 1001 | |
| rbac.clusterWide | bool | false | |
| rbac.create | bool | true | |
| rbac.rules | list | [] | |
| resources | object | {} | |
| resourcesPreset | string | "nano" | |
| restartPolicy | string | "OnFailure" | |
| schedule | string | "" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.automountServiceAccountToken | bool | true | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| tolerations | list | [] | |
| ttlSecondsAfterFinished | int | 300 |
Maintainers
| Name | Url | |
|---|---|---|
| kubelauncher | [email protected] | https://www.kubelauncher.com |
Deploy kubectl with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubectl 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 chartkubectl is pinned at v0.3.2 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