fix(flux): bind metrics port to $POD_IP

This commit is contained in:
JJGadgets
2024-05-30 05:32:09 +08:00
parent 17b7f1bba7
commit 29358ea6da

View File

@@ -66,7 +66,7 @@ spec:
path: /spec/template/spec/containers/0/env/-
value:
name: KUBERNETES_SERVICE_PORT
value: "6443"
value: "7445" # Talos KubePrism
- op: add
path: /spec/template/spec/containers/0/env/-
value:
@@ -87,8 +87,8 @@ spec:
- --log-level=debug
- --log-encoding=json
- --enable-leader-election=false
- --metrics-addr=127.0.0.1:$(METRICS_PORT)
- --health-addr=127.0.0.1:$(HEALTH_PORT)
- --metrics-addr=$(POD_IP):$(METRICS_PORT)
- --health-addr=127.0.0.1:$(HEALTH_PORT) # hopefully your pod IP uses InternalIP and isn't a public IP, none of mine are at least
- op: add
path: /spec/template/metadata/labels/flux
value: localhost