https://prefect.io logo
Title
k

kent

10/12/2022, 11:06 PM
Hi, I deploy a service with the following CONFIG in GKE, but I get the following error in INGRESS.
some backend services are in unknown state
What is wrong? CONFIGFILE
apiVersion: batch/v1
kind: Job
metadata:
  name: flow-run-job
  labels:
    app: flow-run-job
spec:
  template:
    spec:
      containers:
      - env: []
        name: prefect-job
        image: image-path
        command: ["/bin/sh", "-c"]
        args:
          #deployments
          - python ./workflows/tutorial.py;
            prefect agent start -q test;
            prefect orion start --host 0.0.0.0 --log-level WARNING;
        ports:
        - containerPort: 4200
      restartPolicy: Never
---
apiVersion: v1
kind: Service
metadata:
  name: flow-run-job
  namespace: default
  labels:
    app: flow-run-job
spec:
  ports:
    - port: 4200
      protocol: TCP
  selector:
    app: flow-run-job
c

Christopher Boyd

10/13/2022, 1:26 PM
Hi Kent, I’m curious what you’re trying to do here. You’re trying to expose a service to a job for ingress to route to?