k8s-debug-pod

by harish2k01

Helm chartv0.1.2App 0.1.1MITVerified publisher

Deploys an Ubuntu-based Kubernetes troubleshooting pod

About this chart

k8s-debug-pod Helm Chart

Browse the Helm chart catalog to explore available charts and installation commands.

Deploys an Ubuntu-based Kubernetes troubleshooting pod with common cluster, network, DNS, TLS, process, and database client tools.

[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by Canonical, Ubuntu, or Kubernetes. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.

Install

helm repo add harish2k01 https://harish2k01.github.io/helm-charts
helm repo update
helm install k8s-debug-pod harish2k01/k8s-debug-pod \
  --namespace debug \
  --create-namespace

Install From OCI

This chart is also published as an OCI chart in GHCR. Use the same values and namespace flags with the OCI reference:

helm install k8s-debug-pod oci://ghcr.io/harish2k01/helm-charts/k8s-debug-pod --version 0.1.2 --namespace debug --create-namespace

Connect

kubectl -n debug exec -it deploy/k8s-debug-pod -- bash

Remove

helm uninstall k8s-debug-pod --namespace debug
kubectl delete namespace debug

RBAC

By default the chart creates a ServiceAccount and binds it to the built-in view ClusterRole. Disable RBAC or use a different ClusterRole through values:

rbac:
  create: true
  clusterRoleName: view

Image Releases

The container image is built in the separate harish2k01/k8s-debug-pod repository and published to:

ghcr.io/harish2k01/k8s-debug-pod

That repository publishes images from GitHub Releases with semantic version tags. A stable release such as v1.2.3 publishes 1.2.3, 1.2, 1, and latest. A prerelease such as v1.2.3-rc.1 publishes only 1.2.3-rc.1.

Values

KeyTypeDefaultDescription
replicaCountint1Number of debug pod replicas
image.repositorystringghcr.io/harish2k01/k8s-debug-podContainer image repository
image.tagstring0.1.1Container image tag
image.pullPolicystringIfNotPresentContainer pull policy
imagePullSecretslist[]Image pull secrets
nameOverridestring""Override the chart name
fullnameOverridestring""Override the full release name
podAnnotationsobject{}Additional pod annotations
podLabelsobject{}Additional pod labels
podSecurityContextobject{}Pod security context
securityContextobjectNET_ADMIN and NET_RAW with privilege escalation disabledContainer security context
serviceAccount.createbooltrueCreate a ServiceAccount
serviceAccount.annotationsobject{}ServiceAccount annotations
serviceAccount.namestring""ServiceAccount name override
rbac.createbooltrueCreate a ClusterRoleBinding
rbac.clusterRoleNamestringviewClusterRole to bind to the ServiceAccount
commandlist[]Optional command override
argslist[]Optional args override
envobject{}Environment variables passed to the container
envFromlist[]envFrom entries for ConfigMaps or Secrets
resourcesobjectCPU and memory requests/limitsContainer resource requests and limits
extraVolumeslist[]Additional pod volumes
extraVolumeMountslist[]Additional container volume mounts
nodeSelectorobject{}Pod node selector
tolerationslist[]Pod tolerations
affinityobject{}Pod affinity

Upgrade history

See CHANGELOG.md for version changes and compatibility notes.

Deploy k8s-debug-pod with OpenTenant

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