Skip to content

Commit fb04800

Browse files
committed
feat(deployment): add high-availability controller resource type
Updated the deployment to include a high-availability controller resource type for better control plane resilience. Added a new pod disruption budget template to ensure high availability during node disruptions.
1 parent 89bae65 commit fb04800

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

charts/internal/seed-controlplane/charts/stackit-pod-identity-webhook/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
{{- include "stackit-pod-identity-webhook.selectorLabels" . | nindent 8 }}
1717
workload-identity.stackit.cloud/skip-pod-identity-webhook: "true"
1818
gardener.cloud/role: controlplane
19+
high-availability-config.resources.gardener.cloud/type: controller
1920
networking.gardener.cloud/to-dns: allowed
2021
networking.gardener.cloud/to-public-networks: allowed
2122
networking.gardener.cloud/to-private-networks: allowed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: policy/v1
2+
kind: PodDisruptionBudget
3+
metadata:
4+
name: {{ include "stackit-pod-identity-webhook.fullname" . }}
5+
namespace: {{ .Release.Namespace }}
6+
labels:
7+
{{- include "stackit-pod-identity-webhook.labels" . | nindent 4 }}
8+
spec:
9+
maxUnavailable: 1
10+
selector:
11+
matchLabels:
12+
{{- include "stackit-pod-identity-webhook.selectorLabels" . | nindent 6 }}
13+
unhealthyPodEvictionPolicy: AlwaysAllow

charts/internal/seed-controlplane/charts/stackit-pod-identity-webhook/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ service:
1818

1919
resources:
2020
limits:
21-
cpu: 100m
2221
memory: 128Mi
2322
requests:
24-
cpu: 100m
25-
memory: 128Mi
23+
cpu: 50m
24+
memory: 64Mi
2625

2726
serviceAccount:
2827
create: true

0 commit comments

Comments
 (0)