mirror of https://github.com/kubernetes/kops.git
This will expose metrics port when PrometheusMetricsEnabled set to true
This commit is contained in:
parent
6f05c0bac4
commit
f9d5ce04a6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue