Add service-metrics port protocol (#7782)
This commit is contained in:
parent
9d54409a90
commit
23b3d0c553
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ spec:
|
|||
ports:
|
||||
- name: metrics
|
||||
port: {{ .Values.controller.metrics.service.servicePort }}
|
||||
protocol: TCP
|
||||
targetPort: metrics
|
||||
{{- $setNodePorts := (or (eq .Values.controller.metrics.service.type "NodePort") (eq .Values.controller.metrics.service.type "LoadBalancer")) }}
|
||||
{{- if (and $setNodePorts (not (empty .Values.controller.metrics.service.nodePort))) }}
|
||||
|
|
Loading…
Reference in a new issue