Leon Kozlowski
09/13/2022, 9:17 PMstern --tail 500 prefect-orion
"message":"The POST operation against Job.batch could not be completed at this time, please try again.","reason":"ServerTimeout"
rules:
- apiGroups: [""]
resources: ["pods", "pods/log", "pods/status"]
verbs: ["get", "watch", "list"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: [ "get", "list", "watch", "create", "update", "patch", "delete" ]
apiVersion: batch/v1
kind: Job
metadata:
name: FLOWNAME-job
labels:
<http://app.kubernetes.io/name|app.kubernetes.io/name>: FLOWNAME
spec:
template:
spec:
serviceAccountName: prefect-orion-agent
restartPolicy: Never
completions: 1
parallelism: 1
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "<http://kubernetes.io/arch|kubernetes.io/arch>"
operator: In
values: ["amd64"]
containers:
- name: prefect-job
imagePullPolicy: IfNotPresent
env:
- name: SECRET_VALUE
valueFrom:
secretKeyRef:
name: prefect-orion-agent
key: SECRET_VALUE
- name: CONFIGMAP_VALUE
valueFrom:
configMapKeyRef:
name: prefect-orion-agent
key: CONFIGMAP_VALUE
Mason Menges
09/13/2022, 10:29 PMLeon Kozlowski
09/14/2022, 1:20 AM