https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Scott Hood

05/04/2022, 4:01 PM
Hey team, I was looking for a way to change the pod naming for the dagster-user-deployments. Currently when they deploy the naming for our user deployments ends up looking something like:
Copy code
<namespace>-<chart-name>-dagster-user-deploymen7wfrt
we would like it to utilize something like the
name
parameter on the deployment, is there any way of doing this? Thanks!
p

prha

05/04/2022, 4:14 PM
cc @rex
r

rex

05/04/2022, 4:26 PM
We put the
name
parameter in the deployment’s name, but it might be getting cut off since there’s a 63 character limit in kubernetes. This isn’t documented, but if you’re using the main
dagster
helm chart, you can specify an override to the name using
.dagster-user-deployments.fullnameOverride
. This will override the prefix to the created deployment pods
Here’s the full logic, if you’re interested. • Specifying the prefix: [1] • Name of the code server deployments: [2]
So your
values.yaml
should be something like:
Copy code
dagster-user-deployments:
  fullnameOverride: "my-prefix"
s

Scott Hood

05/04/2022, 4:29 PM
So this is combination with the
fullnameOverride
at the global level?
r

rex

05/04/2022, 4:30 PM
this is not acting at a global level - this will only affect the resources that are stood up by the
dagster-user-deployments
subchart
if you want the prefix to affect both charts (
dagster
and
dagster-user-deployments
) then yeah you can use
.global.fullnameOverride
s

Scott Hood

05/04/2022, 4:31 PM
Got it, thanks! I'll give it a try.
@rex Setting the fullnameOverride at the global level solved what I was looking for, still good to know I can change the name at the deployment level as well. One thing I noticed however is when setting the name it didn't change the pod names for dagit ui's. Is that known or might be a fluke ?
r

rex

05/05/2022, 5:25 PM
2 Views