helm icon indicating copy to clipboard operation
helm copied to clipboard

unable to use nodePort service without setting a nodePort

Open si458 opened this issue 5 years ago • 2 comments

nodePort should be optional and not required for nodePort Service https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport my nextcloud.yaml file for helm helm install nextcloud nextcloud/nextcloud -f nextcloud.yaml

persistence:
  enabled: true
service:
  type: NodePort

ERROR:

Error: unable to build kubernetes objects from release manifest: error validating "":
error validating data: ValidationError(Service.spec.ports[0].nodePort):
invalid type for io.k8s.api.core.v1.ServicePort.nodePort: got "string", expected "integer"

si458 avatar Nov 18 '20 21:11 si458

same here, i must use this method

helm install nextcloud
 nextcloud/nextcloud -n nextcloud --create-namespace \
--set persistence.enabled=true \
--set service.type=NodePort \
--set service.nodePort=30808 \
--set nextcloud.host=192.168.72.17.nip.io:30080

but i find nodeport is not need in nextcloud.host, just nextcloud.host=192.168.72.17.nip.io is ok.

weironz avatar Aug 21 '23 08:08 weironz

We'd love a PR on this if it's still a problem. We recently had this similar PR for reference: https://github.com/nextcloud/helm/pull/430

jessebot avatar Sep 01 '23 06:09 jessebot