Josh Greenhalgh
01/22/2021, 10:00 AM<https://github.com/PrefectHQ/server/tree/master/helm/prefect-server>
- started with the option --set agent.enabled=true
- I would have assumed that requests from the agent to the server would go via cluster networking but it doesn't seem to happen and I think I need to specify the graphql url for the agent but no idea how!Zanie
01/22/2021, 3:17 PMJosh Greenhalgh
01/22/2021, 3:20 PMprefect agent kubernetes install ...
and passing it the api url once I knew it - I am still unclear as to why the agent is speaking to the server over the open internet rather than within the cluster?Zanie
01/22/2021, 3:24 PMJosh Greenhalgh
01/22/2021, 3:25 PMZanie
01/22/2021, 4:40 PMJosh Greenhalgh
01/22/2021, 8:05 PM--set agent.enabled=true
the agent has the following in its logs;
[2021-01-22 20:02:51,449] ERROR - agent | 400 Client Error: Bad Request for url: <http://prefect-apollo.prefect:4200/graphql>
The following error messages were provided by the GraphQL server:
INTERNAL_SERVER_ERROR: Variable "$input" got invalid value null at
"input.tenant_id"; Expected non-nullable type UUID! not to be null.
The GraphQL query was:
mutation($input: get_runs_in_queue_input!) {
get_runs_in_queue(input: $input) {
flow_run_ids
}
}
The passed variables were:
{"input": {"before": "2021-01-22T20:02:51.383799+00:00", "labels": [], "tenant_id": null}}
Zanie
01/22/2021, 8:06 PMJosh Greenhalgh
01/22/2021, 8:07 PMZanie
01/22/2021, 8:07 PMJosh Greenhalgh
01/22/2021, 8:09 PM(prefect-k8s-NWMFqeiw-py3.7) ➜ prefect-server git:(master) ✗ kubectl get pods -n prefect
NAME READY STATUS RESTARTS AGE
prefect-agent-59db54f4dc-4lwqb 1/1 Running 0 10m
prefect-apollo-b5d9c4cd8-4hqs8 1/1 Running 1 10m
prefect-graphql-5f77cd4674-ktq8g 1/1 Running 0 10m
prefect-hasura-bf4dd5d95-m7mzx 1/1 Running 2 10m
prefect-postgresql-0 1/1 Running 0 10m
prefect-towel-5dc84cb477-6h6c8 1/1 Running 0 10m
prefect-ui-9b74bc6c8-nqdb2 1/1 Running 0 10m
Zanie
01/22/2021, 8:11 PMkubectl delete pod prefect-agent-59db54f4dc-4lwqb
should remove it and the deployment should spawn a new oneJosh Greenhalgh
01/22/2021, 8:13 PMZanie
01/22/2021, 8:23 PMPREFECT__CLOUD__AGENT__LEVEL=debug
Josh Greenhalgh
01/22/2021, 9:52 PM