Skip to content

Commit 7270e65

Browse files
martinhvanthonyh209
authored andcommitted
18572: Introduce GKE allowlist synchronizer
This werk adds the necessary helm configurations in order to enable support to run the collector in GKE Autopilot. Closes: #33 Change-Id: I025ead7fceddfd68f06fe6b182d834f69f9fcf02
1 parent adec99a commit 7270e65

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

.werks/18572.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[//]: # (werk v2)
2+
# Introduce GKE allowlist synchonizer
3+
4+
key | value
5+
---------- | ---
6+
date | 2025-08-19T09:29:55+00:00
7+
version | 2.0.0-alpha.1
8+
class | feature
9+
edition | cre
10+
component | helm
11+
level | 1
12+
compatible | yes
13+
14+
This werk adds the necessary helm configurations in order to
15+
enable support to run the collector in GKE Autopilot.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- /* Deploy only if .Values.gkeAutopilot.allowlistPaths is non-empty */ -}}
2+
{{- if and .Values.gkeAutopilot (hasKey .Values.gkeAutopilot "allowlistPaths") }}
3+
apiVersion: auto.gke.io/v1
4+
kind: AllowlistSynchronizer
5+
metadata:
6+
name: {{ include "checkmk.fullname" . }}-allowlist-synchronizer
7+
spec:
8+
allowlistPaths:
9+
{{- range .Values.gkeAutopilot.allowlistPaths }}
10+
- "{{ . }}"
11+
{{- end }}
12+
{{- end }}

deploy/charts/checkmk/templates/node-collector-container-metrics-ds.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ spec:
3131
{{- include "checkmk.selectorLabels" . | nindent 8 }}
3232
component: {{ include "checkmk.fullname" . }}-node-collector
3333
app: {{ include "checkmk.fullname" . }}-node-collector-container-metrics
34+
{{- if .Values.gkeAutopilot.enabled }}
35+
cloud.google.com/matching-allowlist: checkmk-node-collector-container-metrics
36+
{{- end }}
3437
spec:
3538
{{- with .Values.imagePullSecrets }}
3639
imagePullSecrets:

deploy/charts/checkmk/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ kubeVersionOverride: ""
1010
## If you are using one of them, or containerd is located in an alternate location, please uncomment / adapt the override.
1111
#containerdOverride: "/run/k3s/containerd/containerd.sock"
1212

13+
## GKE Autopilot only allows privilegded workloads, if they are allowlisted.
14+
## Requirement: Please first deploy the allowlist-synchronizer CRD [https://github.com/checkmk/checkmk_kube_agent/tree/main/deploy/manifests/gke-allowlist/cmk-allowlist-synchronizer.yaml]
15+
## More info: https://cloud.google.com/kubernetes-engine/docs/how-to/run-autopilot-partner-workloads
16+
## To deploy in GKE Autopilot, please set to true.
17+
gkeAutopilot:
18+
enabled: false
19+
1320
tlsCommunication:
1421
enabled: false
1522
verifySsl: false

0 commit comments

Comments
 (0)