Browse Source
Correct cilium metrics port mapping (#10519)
Signed-off-by: Marc Brugger <m.brugger@bison-group.com>
pull/10540/head
Marc Brugger
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
1 deletions
-
roles/network_plugin/cilium/templates/hubble/deploy.yml.j2
-
roles/network_plugin/cilium/templates/hubble/service.yml.j2
|
|
@ -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 |
|
|
|
|
|
@ -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: |
|
|
@ -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 |
|
|
|