Hi all, does anyone know how I can specify a `node...
# deployment-kubernetes
g
Hi all, does anyone know how I can specify a
nodePort
value for the dagit service in values.yaml? I want to set up external access to the Dagit UI, but I don't necessarily require ingress. I'm ok with using a NodePort service. But I would like to be able to specify a
nodePort
so that one isn't randomly assigned. I tried something like this
Copy code
dagit:
  service:
    type: NodePort
    port: 80
    nodePort: 32501
but I'm getting
Copy code
Error: UPGRADE FAILED: values don't meet the specifications of the schema(s) in the following chart(s):
dagster:
- dagit.service: Additional property nodePort is not allowed
Does anyone know how I can achieve this? TIA
So not supported directly
You can use a post render filter to add it though
(usually via Kustomize)
Alternatively if you're a very very bad person, they didn't quote the port so
port: "80\n      nodePort: 32123"
might work
🥴 2
😅 1
g
Ok, good to know.. thanks so much!
n
If you use that last one and it works, don't forget to say a prayer to the YAML gods.
😑 1