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"Leon Kozlowski
09/13/2022, 9:18 PMrules:
  - apiGroups: [""]
    resources: ["pods", "pods/log", "pods/status"]
    verbs: ["get", "watch", "list"]
  - apiGroups: ["batch"]
    resources: ["jobs"]
    verbs: [ "get", "list", "watch", "create", "update", "patch", "delete" ]Leon Kozlowski
09/13/2022, 9:25 PMapiVersion: 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_VALUEMason Menges
09/13/2022, 10:29 PMLeon Kozlowski
09/14/2022, 1:20 AM