fix: add nodePort to service
This commit is contained in:
parent
30a0a4a838
commit
57fa377507
|
|
@ -14,6 +14,9 @@ spec:
|
||||||
port: {{ .Values.container.port }}
|
port: {{ .Values.container.port }}
|
||||||
targetPort: {{ .Values.container.port }}
|
targetPort: {{ .Values.container.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- with .Values.service.nodePort }}
|
||||||
|
nodePort: {{ . }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app: {{ template "cadvisor.name" . }}
|
app: {{ template "cadvisor.name" . }}
|
||||||
type: ClusterIP
|
type: {{ .Values.service.type }}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,10 @@ container:
|
||||||
path: "/dev/disk"
|
path: "/dev/disk"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
nodePort: # If type is NodePort, specify the nodePort value. (30000-32767)
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue