I'm attempting to use the helm chart to deploy Dag...
# announcements
j
I'm attempting to use the helm chart to deploy Dagster but I keep getting the example user code instead of my code even though I updated the dagster-user-deployments section with my user code image. Am I missing a configuration in values.yaml?
Copy code
dagster-user-deployments:
  # Creates a workspace file with the gRPC servers hosting your user code.
  enabled: true

  # If you plan on deploying user code in a separate Helm release, set this to false.
  enableSubchart: true

  # List of unique deployments
  deployments:
    - name: "dagster-code"
      image:
        repository: "<http://repo.azurecr.io/dagster-code|repo.azurecr.io/dagster-code>"
        tag: latest
        # Change with caution! If you're using a fixed tag for pipeline run images, changing the
        # image pull policy to anything other than "Always" will use a cached/stale image, which is
        # almost certainly not what you want.
        pullPolicy: Always
      # Arguments to `dagster api grpc`.
      # Ex: "dagster api grpc -m dagster_test.test_project.test_pipelines.repo -a define_demo_execution_repo"
      # would translate to:
      # dagsterApiGrpcArgs:
      #   - "-m"
      #   - "dagster_test.test_project.test_pipelines.repo"
      #   - "-a"
      #   - "define_demo_execution_repo"
      dagsterApiGrpcArgs:
        - "-f"
        - "/opt/dagster/app/repository.py"
      port: 3030
p
are you trying to upgrade an existing helm deployment or deploying one from scratch using your custom image?
j
deploy from scratch
p
is there any way the
dagster-code
image could have the example files rather than your own?
j
no, also the pod name doesn't reference my name provided in values.yaml
it looks like dagster-test-release2-k8s-example-user-code-1-595bc97f9b-bnqs8
a
@rex
r
@Jeff Hulbert did you update your repository index?
helm repo up
this will pull the latest charts down
j
did that ~1 day ago, will give it a try
r
sanity check with helm search repo that 0.11.0 is present
j
confirmed 0.11.0
think that did it - the pod is coming up but it doesn't have that example code name now
worked thanks!
side note for the docs, the user code example Dockerfile doesn't have a CMD statement but I found it easier to test by including one so you can make sure you get dagster grpc api command and path to repo file correct
Copy code
CMD ["dagster", "api", "grpc", "-f", "/opt/dagster/app/repository.py", "-p", "3030"]
r
oh nice, and you supply that instead of the
dagsterApiGrpcArgs
?
or is this just for local testing
j
local testing, didn't change the way values.yaml is setup
👍🏼 1