-
Notifications
You must be signed in to change notification settings - Fork 0
K8s PDB
Andy Potanin edited this page Jun 21, 2026
·
1 revision
Creates a Kubernetes PodDisruptionBudget from a native manifest definition.
Use this module when a Rabbit service needs to guarantee minimum pod availability during voluntary disruptions such as node drains or cluster upgrades.
- PodDisruptionBudget creation from a standard Kubernetes manifest.
-
minAvailableormaxUnavailableconstraints. - Label selector matching.
- A kubeconfig secret created by the
k8s-accessmodule. - The target namespace and workload must exist.
- The
configurationskey accepts a complete Kubernetes PDB manifest (withoutapiVersionandkind). - Use either
minAvailableormaxUnavailable, not both. -
selector.matchLabelsmust match the labels on the target pods.
services:
- name: "k8s PDB"
module: "k8s-pdb"
id: "app-pdb"
deployment_order: 120
configurations:
metadata:
name: "www-example-com"
namespace: "www-example-com"
spec:
minAvailable: 1
selector:
matchLabels:
app: "www-example-com"This module does not produce outputs.
The configurations key accepts a native Kubernetes PDB manifest body.
configurations:
metadata:
name: ""
namespace: ""
labels: {}
annotations: {}
spec:
minAvailable: 1
maxUnavailable: null
selector:
matchLabels: {}| Field | Type | Required | Description |
|---|---|---|---|
metadata.name |
string | Yes | PDB name. |
metadata.namespace |
string | Yes | Target namespace. |
metadata.labels |
map[string] | No | Kubernetes labels. |
metadata.annotations |
map[string] | No | Kubernetes annotations. |
spec.minAvailable |
number or string | Conditional | Minimum available pods. Use this or maxUnavailable. |
spec.maxUnavailable |
number or string | Conditional | Maximum unavailable pods. Use this or minAvailable. |
spec.selector.matchLabels |
map[string] | Yes | Label selector matching target pods. |
- GCP GKE Cluster
- GCP GKE Node Pool
- GCP IAM
- GCP Monitoring
- GCP Networking
- GCP PostgreSQL Instance
- GCP Secret Manager
- GCP SQL Instance
- GCP Static IP
- GCP Storage