Jason
01/27/2021, 3:41 AM# ==> Add user code layer
which I'm adding in my pip install
dependencies, but other than that what else should be included? The example project and Dockerfile seem to work fine as is but with all my tinkering my pod still errors out kubectl get pods
showing CrashLoopBackOff
for my new pod and the log below. I'm also able to successful run the deploy_docker example locally
...
Normal Pulled 11s (x3 over 26s) kubelet Successfully pulled image "<http://account.dkr.ecr.region.amazonaws.com/dagster-test:latest|account.dkr.ecr.region.amazonaws.com/dagster-test:latest>"
Normal Created 10s (x3 over 26s) kubelet Created container dagster
Normal Started 10s (x3 over 26s) kubelet Started container dagster
Warning BackOff 9s (x5 over 24s) kubelet Back-off restarting failed container
If it helps I'm using AWS EKS Managed but I think this is just my issue with setting up Dockerfile. I'm trying to retrofit the dbt_example into the k8s_exampleCharles Lariviere
01/27/2021, 3:45 AMvalues.yaml
was expecting. I could find out the exact error by kubectl logs <pod>
.Charles Lariviere
01/27/2021, 3:47 AMFROM python:3.7.8-slim
ARG DAGSTER_VERSION=0.10.1
# ==> Add Dagster layer
RUN \
# Cron
apt-get update -yqq \
&& apt-get install -yqq cron \
# Dagster
&& pip install \
dagster==${DAGSTER_VERSION} \
dagster-postgres==${DAGSTER_VERSION} \
dagster-celery[flower,redis,kubernetes]==${DAGSTER_VERSION} \
dagster-aws==${DAGSTER_VERSION} \
dagster-k8s==${DAGSTER_VERSION} \
dagster-celery-k8s==${DAGSTER_VERSION} \
# Cleanup
&& rm -rf /var \
&& rm -rf /root/.cache \
&& rm -rf /usr/lib/python2.7 \
&& rm -rf /usr/lib/x86_64-linux-gnu/guile
# ==> Add user code layer
# Example pipelines
COPY . /
mrdavidlaing
01/27/2021, 7:45 AMJason
01/27/2021, 2:41 PMkubectl logs
is a life saver. Got it working with a simple file/folder structure, then got into issues with relative paths and modules but at the moment I think everything is working.
I need to get a refresher on python packages, modules and setup.py 🙂