Skip to content

Commit

Permalink
Correct cilium metrics port mapping (kubernetes-sigs#10519)
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Brugger <[email protected]>
  • Loading branch information
bakito authored and pedromcpedro committed May 8, 2024
1 parent f51cc78 commit 9d123aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions roles/network_plugin/cilium/templates/hubble/deploy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ spec:
ports:
- name: grpc
containerPort: 4245
{% if cilium_enable_prometheus %}
- name: prometheus
containerPort: 9966
protocol: TCP
{% endif %}
readinessProbe:
tcpSocket:
port: grpc
Expand Down
5 changes: 4 additions & 1 deletion roles/network_plugin/cilium/templates/hubble/service.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
namespace: kube-system
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: "9091"
prometheus.io/port: "{{ cilium_hubble_scrape_port }}"
labels:
k8s-app: hubble
spec:
Expand All @@ -31,6 +31,9 @@ metadata:
namespace: kube-system
labels:
k8s-app: hubble-relay
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: "9966"
spec:
clusterIP: None
type: ClusterIP
Expand Down

0 comments on commit 9d123aa

Please sign in to comment.