From 92c08f3696d92e1c28e65ed7000e494718e53f67 Mon Sep 17 00:00:00 2001 From: IvanHunters Date: Wed, 22 Jul 2026 22:15:08 +0300 Subject: [PATCH] feat(talos-log-collector): add liveness probe and document portmap dependency Without a liveness probe a wedged Vector on this system-node-critical DaemonSet is never restarted. Add a tcpSocket probe on the listen port, which the ingress policy already permits from the node. Document that the loopback hostPort depends on the portmap CNI plugin chained ahead of Cilium: the plain cilium/cilium-generic/cilium-kilo variants cannot bind a hostPort to 127.0.0.1. Signed-off-by: IvanHunters --- .../talos-log-collector/templates/daemonset.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/system/talos-log-collector/templates/daemonset.yaml b/packages/system/talos-log-collector/templates/daemonset.yaml index 71708632c..59c88c0a5 100644 --- a/packages/system/talos-log-collector/templates/daemonset.yaml +++ b/packages/system/talos-log-collector/templates/daemonset.yaml @@ -25,6 +25,11 @@ spec: # socket into the pod via portmap. This keeps the receiver off the host # network (no node-wide pod exposure, no host-DNS handling) while still # accepting node-loopback traffic. + # The loopback hostPort relies on the portmap CNI plugin (chained ahead of + # Cilium on the kubeovn-cilium* variants). Cilium's own eBPF hostPort + # implementation cannot bind a hostPort to 127.0.0.1, so on the plain + # cilium/cilium-generic/cilium-kilo variants (not selected by any bundle + # today) this receiver would silently stop receiving. securityContext: runAsNonRoot: true runAsUser: 65534 @@ -37,6 +42,11 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: ["--config", "/etc/vector/vector.yaml"] + livenessProbe: + tcpSocket: + port: talos + initialDelaySeconds: 10 + periodSeconds: 30 env: - name: VECTOR_SELF_NODE_NAME valueFrom: