From 9526638d8f1aa0685a438bbd692b209f58012381 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Sun, 29 Sep 2024 18:56:10 +0800 Subject: [PATCH] Expose container port for probes kube-linter reports errors for this missing exposed container port. --- config/manager/manager.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index ad8335e..3226b56 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -43,6 +43,10 @@ spec: - --leader-elect image: controller:latest name: manager + ports: + - containerPort: 8081 + name: probes + protocol: TCP securityContext: allowPrivilegeEscalation: false capabilities: