fix: add nodePort to service (#213)

Co-authored-by: Christian Hopf <git@ckotzbauer.de>
This commit is contained in:
yuta 2025-04-06 18:16:40 +09:00 committed by GitHub
parent 904866b509
commit 1ce0ef22c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,9 @@ spec:
port: {{ .Values.container.port }}
targetPort: {{ .Values.container.port }}
protocol: TCP
{{- with .Values.service.nodePort }}
nodePort: {{ . }}
{{- end }}
selector:
{{- include "cadvisor.selectorLabels" . | nindent 4 }}
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