hi, how do i update k8 workpool base job template in a file without going through the ui? I would like to version control it updating image and set environment variables. is there any better way to do it to what i did?
prefect-kubernetes==0.3.1
I tried to get the manifest from
prefect kubernetes manifest flow-run-job
edit the manifest to change the environment variables but when i try to apply it by
kubectl apply -f job-manifest.yaml
I get the error
error: error when retrieving current configuration of:
Resource: "batch/v1, Resource=jobs", GroupVersionKind: "batch/v1, Kind=Job"
Name: "", Namespace: "data"
my manifest looks like this
apiVersion: batch/v1
kind: Job
metadata:
# labels are required, even if empty
labels: {}
namespace: data
stream_output: true
spec:
template:
spec:
completions: 1
containers:
- name: prefect-job
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
key: DB_PASSWORD
name: etl
image: xxxxx.dkr.ecr.eu-central-1.amazonaws.com/data/prefect_agent:latest
parallelism: 1
restartPolicy: Never