Skip to content

Commit

Permalink
fix: preserve default entrypoint (#186)
Browse files Browse the repository at this point in the history
* Use the default entrypoint script, so that we install packages
  correctly (Closes: #182)
* Define the default entrypoint as command, and pass Prefect
  server/agent/worker commands via args, consistent with running
  the container image via Docker/Podman (Closes: #170)
  • Loading branch information
jawnsy authored Jun 28, 2023
1 parent 43b87f1 commit 0a74a14
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
5 changes: 5 additions & 0 deletions charts/prefect-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ spec:
image: "{{ .Values.agent.image.repository }}:{{ .Values.agent.image.prefectTag }}"
imagePullPolicy: {{ .Values.agent.image.pullPolicy }}
command:
- /usr/bin/tini
- -g
- --
- /opt/prefect/entrypoint.sh
args:
- prefect
- agent
- start
Expand Down
16 changes: 15 additions & 1 deletion charts/prefect-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,21 @@ spec:
- name: prefect-server
image: "{{ .Values.server.image.repository }}:{{ .Values.server.image.prefectTag }}"
imagePullPolicy: {{ .Values.server.image.pullPolicy }}
command: ["prefect", "server", "start", "--host", "0.0.0.0", "--log-level", "WARNING", "--port", {{ .Values.service.port | quote }}]
command:
- /usr/bin/tini
- -g
- --
- /opt/prefect/entrypoint.sh
args:
- prefect
- server
- start
- --host
- 0.0.0.0
- --log-level
- WARNING
- --port
- {{ .Values.service.port | quote }}
workingDir: /home/prefect
ports:
- containerPort: {{ int .Values.service.port }}
Expand Down
5 changes: 5 additions & 0 deletions charts/prefect-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ spec:
image: "{{ .Values.worker.image.repository }}:{{ .Values.worker.image.prefectTag }}"
imagePullPolicy: {{ .Values.worker.image.pullPolicy }}
command:
- /usr/bin/tini
- -g
- --
- /opt/prefect/entrypoint.sh
args:
- prefect
- worker
- start
Expand Down

0 comments on commit 0a74a14

Please sign in to comment.