mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-19 14:57:43 -02:30
Expose calico-typha metrics port (#8855)
This commit is contained in:
@@ -14,6 +14,12 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: calico-typha
|
targetPort: calico-typha
|
||||||
name: calico-typha
|
name: calico-typha
|
||||||
|
{% if typha_prometheusmetricsenabled %}
|
||||||
|
- port: {{ typha_prometheusmetricsport }}
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: http-metrics
|
||||||
|
name: metrics
|
||||||
|
{% endif %}
|
||||||
selector:
|
selector:
|
||||||
k8s-app: calico-typha
|
k8s-app: calico-typha
|
||||||
|
|
||||||
@@ -76,6 +82,11 @@ spec:
|
|||||||
- containerPort: 5473
|
- containerPort: 5473
|
||||||
name: calico-typha
|
name: calico-typha
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{% if typha_prometheusmetricsenabled %}
|
||||||
|
- containerPort: {{ typha_prometheusmetricsport }}
|
||||||
|
name: http-metrics
|
||||||
|
protocol: TCP
|
||||||
|
{% endif %}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
# Allow KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT to be overridden for eBPF mode.
|
# Allow KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT to be overridden for eBPF mode.
|
||||||
|
|||||||
Reference in New Issue
Block a user