M Taufik
11/13/2020, 4:03 AMJoƫl Luijmes
11/13/2020, 7:09 AMprefect agent kubernetes install --rbac --namespace prefect --api prefect-server-apollo:4200 > prefect-agent.yaml
M Taufik
11/13/2020, 7:39 AMM Taufik
11/13/2020, 7:40 AMJoƫl Luijmes
11/13/2020, 7:47 AMprefect agent kubernetes install --rbac --namespace prefect --api prefect-server-apollo:4200 > prefect-agent.yaml
This command generates the required yaml for deployin the agent in kubernetes. (The --api flag points to the apollo server (in cluster).)
After generating the yaml, just apply it kubectl apply -f prefect-agent.yaml
As the helm chart currently donāt have any ingresses, I port forward the apollo and ui services to reach itM Taufik
11/13/2020, 8:25 AMJoƫl Luijmes
11/13/2020, 8:26 AMM Taufik
11/13/2020, 8:29 AMprefect server create-tenant
?Joƫl Luijmes
11/13/2020, 8:44 AMM Taufik
11/13/2020, 9:05 AM[2020-11-13 09:02:29,526] INFO - agent | Starting KubernetesAgent with labels []
[2020-11-13 09:02:29,526] INFO - agent | Agent documentation can be found at <https://docs.prefect.io/orchestration/>
[2020-11-13 09:02:29,526] INFO - agent | Agent connecting to the Prefect API at prefect-apollo:4200
[2020-11-13 09:02:29,527] ERROR - agent | There was an error connecting to prefect-apollo:4200
[2020-11-13 09:02:29,527] ERROR - agent | No connection adapters were found for 'prefect-apollo:4200'
[2020-11-13 09:02:29,527] INFO - agent | Waiting for flow runs...
[2020-11-13 09:02:29,530] ERROR - agent | No connection adapters were found for 'prefect-apollo:4200'
Joƫl Luijmes
11/13/2020, 9:18 AMprefect-apollo
kinda depends on how you deployed the helm chart. Check your services with kubectl get services
and then use the correct nameJoƫl Luijmes
11/13/2020, 9:19 AMJoƫl Luijmes
11/13/2020, 9:19 AMprefect agent kubernetes install --rbac --namespace prefect --api <http://prefect-server-apollo:4200> > prefect-agent.yaml
M Taufik
11/13/2020, 9:19 AM[2020-11-13 09:17:25,847] WARNING - agent | Unable to register agent to <http://34.xx.xx.xx:4200>. Make sure the server is running on the latest version.
M Taufik
11/13/2020, 9:20 AM[2020-11-13 09:17:25,848] INFO - agent | Agent connecting to the Prefect API at <http://34.xx.xx.xx:4200>
[2020-11-13 09:17:25,859] INFO - agent | Waiting for flow runs...
[2020-11-13 09:17:26,025] ERROR - agent | 400 Client Error: Bad Request for url: <http://34.xx.xx.xx:4200>
This is likely caused by a poorly formatted GraphQL query or mutation. GraphQL sent:
query {
mutation($input: get_runs_in_queue_input!) {
get_runs_in_queue(input: $input) {
flow_run_ids
}
}
}
variables {
{"input": {"before": "2020-11-13T09:17:25.861645+00:00", "labels": [], "tenant_id": null}}
M Taufik
11/13/2020, 9:22 AMJoƫl Luijmes
11/13/2020, 9:23 AM<http://prefect-apollo:4200>
Joƫl Luijmes
11/13/2020, 9:24 AMM Taufik
11/13/2020, 9:25 AMM Taufik
11/13/2020, 9:25 AM2020-11-13 09:24:27,121] INFO - agent | Starting KubernetesAgent with labels []
[2020-11-13 09:24:27,121] INFO - agent | Agent documentation can be found at <https://docs.prefect.io/orchestration/>
[2020-11-13 09:24:27,121] INFO - agent | Agent connecting to the Prefect API at <http://prefect-apollo:4200>
[2020-11-13 09:24:27,132] INFO - agent | Waiting for flow runs...
[2020-11-13 09:24:27,236] ERROR - agent | 400 Client Error: Bad Request for url: <http://prefect-apollo:4200>
This is likely caused by a poorly formatted GraphQL query or mutation. GraphQL sent:
query {
mutation($input: get_runs_in_queue_input!) {
get_runs_in_queue(input: $input) {
flow_run_ids
}
}
}
variables {
{"input": {"before": "2020-11-13T09:24:27.134876+00:00", "labels": [], "tenant_id": null}}
Joƫl Luijmes
11/13/2020, 9:28 AMM Taufik
11/13/2020, 9:29 AMM Taufik
11/13/2020, 9:30 AMM Taufik
11/13/2020, 9:33 AMJoƫl Luijmes
11/13/2020, 11:11 AMJoƫl Luijmes
11/13/2020, 11:11 AMM Taufik
11/13/2020, 11:22 AMJoƫl Luijmes
11/13/2020, 11:24 AMJoƫl Luijmes
11/13/2020, 11:24 AMM Taufik
11/13/2020, 11:27 AMkubectl port-forward service/apollo 4200
?Joƫl Luijmes
11/13/2020, 11:29 AMkubectl port-forward svc/prefect-server-apollo 4200
, but that depends on the given name for your deployment.
Going of your eerlier screenshot it should be svc/prefect-apollo
M Taufik
11/13/2020, 11:35 AMkubectl port-forward svc/prefect-apollo 4200
Forwarding from 127.0.0.1:4200 -> 4200
M Taufik
11/13/2020, 11:35 AMprefect server create-tenant --name default --slug default
-bash: prefect: command not found
Joƫl Luijmes
11/13/2020, 11:38 AMJoƫl Luijmes
11/13/2020, 11:39 AMJoƫl Luijmes
11/13/2020, 11:39 AMM Taufik
11/13/2020, 1:32 PMJoƫl Luijmes
11/13/2020, 1:37 PMZanie
Zanie
Zanie
Zanie