I deployed my prefect-agent to my kubernetes environment but the workflow files within the image that the deployment uses are not there. My service container for prefect-server is using the same image and the workflow files are there… why is this behavior happening?
deployment.yml:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: prefect-server
name: prefect-server
spec:
replicas: 1
selector:
matchLabels:
run: prefect-server
template:
metadata:
labels:
run: prefect-server
spec:
imagePullSecrets:
- name: regcred
containers:
{{- with .Values.image }}
- image: {{ .registry }}/{{ .repository }}:{{ .tag }}
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: prefect-server
command: ["prefect", "server", "start", "--host", "0.0.0.0", "--log-level", "WARNING", "--port", "3000"]
workingDir: /opt/prefect
env:
{{- if .Values.ingress.hostname }}
- name: PREFECT_UI_API_URL
value: "https://myhost/api"
...
resources:
requests:
memory: {{ .Values.resources.requests.memory}}
cpu: {{ .Values.resources.requests.cpu}}
limits:
memory: {{ .Values.resources.limits.memory}}
cpu: {{ .Values.resources.limits.cpu}}
ports:
- containerPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: prefect-agent
name: prefect-agent
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: prefect-agent
template:
metadata:
labels:
app.kubernetes.io/component: prefect-agent
spec:
imagePullSecrets:
- name: regcred
containers:
{{- with .Values.image }}
- image: {{ .registry }}/{{ .repository }}:{{ .tag }}
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: prefect-agent
command: ["prefect", "agent", "start", "--work-queue", "dev"]
workingDir: /opt/prefect
env:
- name: PREFECT_API_URL
value: "https://myhost.com/api"
...
resources:
requests:
memory: {{ .Values.resources.requests.memory}}
cpu: {{ .Values.resources.requests.cpu}}
limits:
memory: {{ .Values.resources.limits.memory}}
cpu: {{ .Values.resources.limits.cpu}}
ports:
- containerPort: 3000