Pedro Martins
01/04/2021, 12:46 PMMariia Kerimova
01/04/2021, 2:17 PMPedro Martins
01/04/2021, 2:32 PMZanie
01/05/2021, 3:56 PMPedro Martins
02/12/2021, 5:00 PMJay Vercellone
02/18/2021, 10:10 PMZanie
02/18/2021, 10:11 PMJay Vercellone
02/18/2021, 10:13 PMZanie
02/18/2021, 10:14 PMJay Vercellone
02/18/2021, 10:14 PM0.14.10
.
The default Docker image seems to be missing the kubernetes
PIP package:
Traceback (most recent call last):
File "/usr/local/bin/prefect", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/prefect/cli/agent.py", line 288, in start
start_agent(KubernetesAgent, image_pull_secrets=image_pull_secrets, **kwargs)
File "/usr/local/lib/python3.8/site-packages/prefect/cli/agent.py", line 108, in start_agent
agent = agent_cls(labels=labels, env_vars=env_vars, **kwargs)
File "/usr/local/lib/python3.8/site-packages/prefect/agent/kubernetes/agent.py", line 121, in __init__
from kubernetes import client, config
ModuleNotFoundError: No module named 'kubernetes'
prefecthq/server:core-0.14.20
Zanie
03/01/2021, 5:12 PMJay Vercellone
03/01/2021, 5:13 PMprefect-server-agent
pods.
I fixed it by setting the tag of the prefecthq/prefect
image to 0.14.20
instead of core-0.14.20
😄values.yaml
file:
agent:
enabled: true
image:
tag: 0.14.20
Zanie
03/01/2021, 5:16 PMcore-
bit because that image does not include orchestration extrasJay Vercellone
03/01/2021, 5:17 PMcore-
prefix in the first place was because some of the images (like prefecthq/server
) are only published under such tags.values.yaml
file, super helpful!Zanie
03/01/2021, 5:18 PMJay Vercellone
03/03/2021, 7:06 AM4200