This will expose metrics port when PrometheusMetricsEnabled set to true

This commit is contained in:
avdhoot 2020-12-12 08:43:45 +05:30
parent 6f05c0bac4
commit f9d5ce04a6
1 changed files with 11 additions and 0 deletions

View File

@ -3631,6 +3631,11 @@ spec:
- containerPort: 5473
name: calico-typha
protocol: TCP
{{- if .Networking.Calico.TyphaPrometheusMetricsEnabled }}
- containerPort: {{- or .Networking.Calico.TyphaPrometheusMetricsPort "9091" }}
name: metrics
protocol: TCP
{{- end }}
envFrom:
- configMapRef:
# Allow KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT to be overridden for eBPF mode.
@ -3965,6 +3970,12 @@ spec:
- -felix-ready
- -bird-ready
periodSeconds: 10
{{- if .Networking.Calico.PrometheusMetricsEnabled }}
ports:
- containerPort: {{- or .Networking.Calico.PrometheusMetricsPort "9091" }}
name: metrics
protocol: TCP
{{- end }}
volumeMounts:
- mountPath: /lib/modules
name: lib-modules