Anyone know why this container would hang at init?...
# announcements
a
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
kubectl exec
into the pod and try to connect yourself
a
until pg_isready -h ""
looks like its not targeting the right
hostname
👀 1
n
Should get a clearer error message
a
this is the default values
I'll play around with the host name
a
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
oh there is a cli flag for that
a
so I had dagit.dev.io
oh? what is the flag
a
Copy code
-l, --path-prefix TEXT          The path prefix where Dagit will be hosted
                                  (eg: /dagit)  [default: ]
a
is it in the values.yaml?
a
dagit --help
a
I'm using kustomize helminflator...I think I can set it there
a
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
that would great
a
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
I just ran it locally and it works. Are you on an old version? Whats the full invocation?
a
with helm command?
a
im just running
dagit
locally but its the same thing deployed in the image
a
right, okay. I have a work around until the change is made
thanks @alex
a
cool glad its sorted out 👍