Open otisaardvark opened 2 years ago
The service.yaml template does not support a NodePort service configuration
service.yaml
The following code added to the template after spec: would enable this service configuration
spec:
... {{- if eq .Values.service.serviceType "NodePort" }} type: NodePort ports: - port: {{ .Values.service.port }} name: http targetPort: {{ .Values.service.port }} nodePort: {{ .Values.service.nodePort }} protocol: {{ .Values.service.protocol }} {{- else if (or (eq .Values.service.serviceType "ClusterIP") (empty .Values.service.serviceType)) }} ...
To use use this configuration, the values.yaml would need to contain a definition similar to the following: -
values.yaml
service: serviceType: NodePort port: 30000 nodePort: 30000 protocol: TCP labels: {} annotations: {}
Nice! @otisaardvark !
I'll work on that one. I'm generally behind load balancers so didn't cross my mind support a simple NodePort. Cheers!
The
service.yaml
template does not support a NodePort service configurationThe following code added to the template after
spec:
would enable this service configurationTo use use this configuration, the
values.yaml
would need to contain a definition similar to the following: -