Kirk Stennett
03/08/2021, 5:59 PMstartupProbe
sections in the values.yaml but the helm install doesn't work. It looks like the templates/deployment-user.yaml
enforces that field here: https://github.com/dagster-io/dagster/blob/master/helm/dagster/templates/deployment-user.yaml#L112-L141. I got it working by pulling it locally and removing that block, but is there a way to get it running without doing this? Or am I missing something?johann
03/08/2021, 6:05 PM{{- if $deployment.startupProbe }}
should cause the whole block to be skipped. Are you using the example user code deployment? In that case you would need to explicitly disable it in your values.yamluserDeployments:
enabled: true
deployments:
- name: "k8s-example-user-code-1"
image:
repository: "<http://docker.io/dagster/user-code-example|docker.io/dagster/user-code-example>"
tag: latest
pullPolicy: Always
dagsterApiGrpcArgs:
- "-f"
- "/example_project/example_repo/repo.py"
port: 3030
startupProbe: {}
helm install --dry-run
could also be helpful for finding any other startupProbesKirk Stennett
03/08/2021, 6:11 PMstartupProbe
and I get this when it runs:
Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.containers[0]): unknown field "startupProbe" in io.k8s.api.core.v1.Container
When I pulled the templates dir locally and removed that section I linked above, it all worked.
So it definitely seems like it's from the user code example block. I'll test with my own, thanks!johann
03/08/2021, 6:13 PMuserDeployments:
enabled: true
deployments:
- name: "k8s-example-user-code-1"
image:
repository: "<http://docker.io/dagster/user-code-example|docker.io/dagster/user-code-example>"
tag: latest
pullPolicy: Always
dagsterApiGrpcArgs:
- "-f"
- "/example_project/example_repo/repo.py"
port: 3030
Kirk Stennett
03/08/2021, 6:16 PMhelm install dagster dagster/dagster -f values.yaml
and got the same error as abovejohann
03/08/2021, 6:17 PMhelm install --dry-run dagster dagster/dagster -f values.yaml
Kirk Stennett
03/08/2021, 6:18 PMError: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.containers[0]): unknown field "startupProbe" in io.k8s.api.core.v1.Container
johann
03/08/2021, 6:18 PMKirk Stennett
03/08/2021, 6:18 PMjohann
03/08/2021, 6:20 PMKirk Stennett
03/08/2021, 6:20 PMjohann
03/08/2021, 6:22 PMhelm template
, which shouldn’t errorKirk Stennett
03/08/2021, 6:24 PMjohann
03/08/2021, 6:25 PMKirk Stennett
03/08/2021, 6:27 PMstartupProbe
sections removedjohann
03/08/2021, 6:37 PMI got it working by pulling it locally and removing that block@Kirk Stennett to be clear, you only had to remove the probe on userDeployments? When I
helm template
your values, I see probes on dagit and the dagster-daemon deploymentsKirk Stennett
03/08/2021, 6:43 PMhelm install dagster . -f values.yaml
johann
03/08/2021, 6:47 PMhelm template dagster dagster/dagster -f ~/personal-config/test-values.yaml
, and see if you reproduce my result of having 2 startupProbes?Kirk Stennett
03/08/2021, 6:47 PMjohann
03/08/2021, 6:49 PMdeployment-dagit.yaml
and deployment-daemon.yaml
? Otherwise it would seem like your install should have failedKirk Stennett
03/08/2021, 6:50 PM{{- if .Values.dagit.startupProbe }}
startupProbe:
{{- toYaml .Values.dagit.startupProbe | nindent 12 }}
{{- end }}
johann
03/08/2021, 7:06 PMdeployment-dagit.yaml
and deployment-daemon.yaml
, I think that should get you started. Thanks for your help debugging this!Kirk Stennett
03/08/2021, 7:08 PM