fix: add nodePort to service

This commit is contained in:
vampire-yuta 2024-10-31 02:36:34 +09:00
parent 30a0a4a838
commit 57fa377507
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,9 @@ spec:
port: {{ .Values.container.port }}
targetPort: {{ .Values.container.port }}
protocol: TCP
{{- with .Values.service.nodePort }}
nodePort: {{ . }}
{{- end }}
selector:
app: {{ template "cadvisor.name" . }}
type: ClusterIP
type: {{ .Values.service.type }}

View File

@ -35,6 +35,10 @@ container:
path: "/dev/disk"
readOnly: true
service:
type: ClusterIP
nodePort: # If type is NodePort, specify the nodePort value. (30000-32767)
resources: {}
# 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