https://dagster.io/ logo
a

Adrian

02/01/2021, 7:57 PM
Anyone know why this container would hang at init? The postgres pod and service is available but it can't seem to get a response?
Copy code
Init Containers:
  check-db-ready:
    Container ID:  <containerd://957d69a6e0ee4ebf1bb66e17dec34a75b1e35ba13fcc374d210b56b2576df546>
    Image:         postgres:9.6.16
    Image ID:      <http://docker.io/library/postgres@sha256:d6a6badb2b5b22de5e135490a217522cecc2ae90fe35b33290615827569310a1|docker.io/library/postgres@sha256:d6a6badb2b5b22de5e135490a217522cecc2ae90fe35b33290615827569310a1>
    Port:          <none>
    Host Port:     <none>
    Command:
      sh
      -c
      until pg_isready -h "" -p 5432; do echo waiting for database; sleep 2; done;
    State:          Running
      Started:      Mon, 01 Feb 2021 14:53:55 -0500
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from dagster-token-6xzxh (ro)
n

Noah K

02/01/2021, 8:02 PM
kubectl exec
into the pod and try to connect yourself
a

alex

02/01/2021, 8:02 PM
until pg_isready -h ""
looks like its not targeting the right
hostname
👀 1
n

Noah K

02/01/2021, 8:02 PM
Should get a clearer error message
a

Adrian

02/01/2021, 8:03 PM
this is the default values
I'll play around with the host name
a

Adrian

02/01/2021, 8:15 PM
I figured it out....
👍 1
I added an ingress that worked post deploy
there is a race condition that interfered with the check cause the ingress spins up faster
the ingress only uses a host instead of a path because I can't do
localhost/dagit
the way the UI loads uses relative paths expecting
/
a

alex

02/01/2021, 8:16 PM
oh there is a cli flag for that
a

Adrian

02/01/2021, 8:17 PM
so I had dagit.dev.io
oh? what is the flag
a

alex

02/01/2021, 8:17 PM
Copy code
-l, --path-prefix TEXT          The path prefix where Dagit will be hosted
                                  (eg: /dagit)  [default: ]
a

Adrian

02/01/2021, 8:17 PM
is it in the values.yaml?
a

alex

02/01/2021, 8:17 PM
dagit --help
a

Adrian

02/01/2021, 8:17 PM
I'm using kustomize helminflator...I think I can set it there
a

alex

02/01/2021, 8:17 PM
ah how to get it in to helm is another question
ill file an issue since it looks like we dont have a good way to do it with our helm values alone hopefully helminflater works for you for now
a

Adrian

02/01/2021, 8:24 PM
that would great
a

Adrian

02/01/2021, 8:26 PM
Error: unknown flag: --path-prefix /dagit
and
unknown shorthand flag: 'l' in -
I'm guessing the option is just not availanle via Helm at all?
a

alex

02/01/2021, 8:28 PM
I just ran it locally and it works. Are you on an old version? Whats the full invocation?
a

Adrian

02/01/2021, 8:29 PM
with helm command?
a

alex

02/01/2021, 8:32 PM
im just running
dagit
locally but its the same thing deployed in the image
a

Adrian

02/01/2021, 9:03 PM
right, okay. I have a work around until the change is made
thanks @alex
a

alex

02/01/2021, 9:04 PM
cool glad its sorted out 👍