Add service-metrics port protocol (#7782)
This commit is contained in:
parent
6499393772
commit
a6ef52da9d
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