Skip to content

Commit

Permalink
kustomize: add "ha" overlay for high availbility
Browse files Browse the repository at this point in the history
Includes a pod disruption budget to ensure we always run at least 1 pod
during node rolls etc.

Run at least 2 replicas
  • Loading branch information
james-callahan committed Jul 23, 2024
1 parent 3c1b10a commit cf1ea46
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kustomize/ha/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/name: tkhq-frames
resources:
- ../
- pdb.yaml
replicas:
- name: frames
count: 2
8 changes: 8 additions & 0 deletions kustomize/ha/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: frames
spec:
minAvailable: 1
selector:
matchLabels: {}

0 comments on commit cf1ea46

Please sign in to comment.