pdb
by ameijer
Helm Chart representing a single PDB (Pod Disruption Budget) Kubernetes API object
About this chart
PDB Chart
TL;DR;
$ helm repo add k8s-as-helm https://ameijer.github.io/k8s-as-helm/
$ helm install my-release k8s-as-helm/pdb
Introduction
Helm charts are great! They are really configurable and let you build complicated software stacks in seconds. Tools like Helmfile combine helm charts together to allow you to set up an environment consisting entirely of helm releases.
Let's say, though, you want to add additional code to a third party helm chart. You could make a new chart with your K8s API resource and the third party chart as a dependency, but that requires maintenance which might not be worth it if you only needed a single additional resource created. That's where k8s-as-helm charts come in. These charts wrap a single Kubernetes resource in a helm chart with all the key parameters exposed.
The PDB chart deploys a single PDB.
Installation
$ helm repo add k8s-as-helm https://ameijer.github.io/k8s-as-helm/
$ helm install my-release k8s-as-helm/pdb
Configuration
The following table lists the configurable parameters of the pdb chart and their default values.
| Parameter | Description | Default |
|---|---|---|
nameOverride | name of the chart component | .Release.Name |
apiVersion | api version of object | "policy/v1beta1" |
labels | labels to add to PDB object | null |
minAvailable | PDB minAvailable value | refer to kubernetes documentation |
maxUnavailable | PDB maxUnavailable value | refer to kubernetes documentation |
selector.matchLabels | (REQUIRED) Yaml Map representation of the label keys and values to match for PDB | null |
Example Configuration
For some examples of values used to configure this chart, see the ci/example values for this chart
Deploy pdb with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pdb 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 chartpdb is pinned at v1.0.5 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