To run prefect jobs in azure kubernetes (aks) virtual nodes, besides adding the recommended nodeSelector/tolerations:
"nodeSelector": {
"kubernetes.io/role": "agent",
"beta.kubernetes.io/os": "linux",
"type": "virtual-kubelet",
},
"tolerations": [
{"key": "virtual-kubelet.io/provider", "operator": "Exists"},
{"key": "azure.com/aci", "effect": "NoSchedule"},
],
container creation fails with:
Warning ProviderCreateFailed pod/prefect-job-XXXXX-XXXXX ACI does not support providing args without specifying the command. Please supply both command and args to the pod spec.
The different command options stated in https://linen.prefect.io/t/48087/topic do not work.
How to solve it?