improve Cilium metrics support (#6513)

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
This commit is contained in:
Arthur Outhenin-Chalandre
2020-08-18 09:35:29 +02:00
committed by GitHub
parent ef3e98807e
commit bedb411d06
3 changed files with 22 additions and 1 deletions

View File

@@ -85,12 +85,20 @@ spec:
successThreshold: 1
timeoutSeconds: 5
name: cilium-agent
{% if cilium_enable_prometheus %}
{% if cilium_enable_prometheus or cilium_enable_hubble_metrics %}
ports:
{% endif %}
{% if cilium_enable_prometheus %}
- containerPort: 9090
hostPort: 9090
name: prometheus
protocol: TCP
{% endif %}
{% if cilium_enable_hubble_metrics %}
- containerPort: 9091
hostPort: 9091
name: hubble-metrics
protocol: TCP
{% endif %}
readinessProbe:
httpGet: