mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 12:43:32 +09:00
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 <xorokhotnikov@gmail.com>
This commit is contained in:
1 file changed
+10
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user