https://prefect.io logo
Title
c

Clément VEROVE

05/21/2022, 3:11 PM
Hi everyone 👋 I have some troubles with the running of my flow on kubernetes. My flow includes docker command such as
docker volume create
/
docker-compose up
so i need docker daemon but it cannot be outside my job. Here is my job template
apiVersion: batch/v1
kind: Job
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
        - name: flow-container
        - name: dind-daemon
          image: docker:stable-dind
          env:
            - name: DOCKER_TLS_CERTDIR
              value: ""
          securityContext:
            privileged: true
      imagePullSecrets:
        - name: regcred
It works but my docker daemon container never stop...... any ideas ?
a

Anna Geller

05/21/2022, 10:12 PM
are you just getting started with Prefect? this tutorial for Prefect 2.0 with Kubernetes may help to get you started https://orion-docs.prefect.io/tutorials/kubernetes-flow-runner/
c

Clément VEROVE

05/23/2022, 7:56 AM
Yes i'm getting started but this tutorial does not answer my question, my flow runs perfectly. The only problem i have is with the lifecycle of the daemon docker container
a

Anna Geller

05/24/2022, 1:12 PM
I guess the lifecycle is the same as with any Kubernetes or Docker applications? otherwise, can you elaborate? if there is anything Prefect-specific about your question, LMK and I'll try to help