kubedoom

by christianhuth

Helm chartv1.2.1App 0.6.0Verified publisher

A Helm chart for Kubedoom

About this chart

kubedoom

A Helm chart for Kubedoom

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kubedoom

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kubedoom

Introduction

This chart bootstraps Kubedoom on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+

Installing the Chart

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

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kubedoom

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kubedoom

These commands deploy Kubedoom on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Accessing Doom

Once everything is up and running inside your cluster, you will need to port forward by getting the pod and running kubectl port-forward.

$ kubectl get pods -n kubedoom
NAME                                       READY   STATUS    RESTARTS   AGE
kubedoom-kubedoom-chart-676bcc5c9c-xkwpp   1/1     Running   0          2m29s

$ kubectl port-forward  kubedoom-kubedoom-chart-676bcc5c9c-xkwpp 5900:5900 -n kubedoom
Forwarding from 127.0.0.1:5900 -> 5900
Forwarding from [::1]:5900 -> 5900

Now start a VNC viewer and connect to the URL of your Kubedoom installation. The password is idbehold.

$ vncviewer viewer localhost:5900

You should now see DOOM! Now if you want to get the job done quickly enter the cheat idspispopd and walk through the wall on your right. You should be greeted by your pods as little pink monsters. Press CTRL to fire. If the pistol is not your thing, cheat with idkfa and press 5 for a nice surprise. Pause the game with ESC.

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

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

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
autoscaling.enabledboolfalseEnable Horizontal POD autoscaling
autoscaling.maxReplicasint100Maximum number of replicas
autoscaling.minReplicasint1Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
autoscaling.targetMemoryUtilizationPercentageint80Target Memory utilization percentage
deploymentStrategyobject{}Update strategy for the deployment
extraEnvlist[]additional environment variables to be added to the pods
fullnameOverridestring""String to fully override "kubedoom.fullname"
image.pullPolicystring"Always"image pull policy
image.registrystring"ghcr.io"image registry
image.repositorystring"storax/kubedoom"image repository
image.tagstring"0.6.0"Overrides the image tag
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
kubedoom.modestring"pods"You can also kill Namespaces instead of Pods. Simply set this to namespaces. Allowed values: pods, namespaces.
kubedoom.namespacestring""You can limit Kubedoom to deleting pods in a single namespace
nameOverridestring""Provide a name in place of kubedoom
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to the pods
podSecurityContextobject{}pod-level security context
replicaCountint1Number of replicas
resourcesobject{}Resource limits and requests for the controller pods.
revisionHistoryLimitint10The number of old ReplicaSets to retain
securityContextobject{}container-level security context
service.portint5900Kubernetes port where service is exposed
service.typestring"ClusterIP"Kubernetes service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]Toleration labels for pod assignment

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml christianhuth/kubedoom

Deploy kubedoom with OpenTenant

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