Klemen Strojan
12/09/2021, 12:56 PM1.22.2
After running
prefect agent kubernetes install \
-k ${PREFECT_DE_PROD_API} \
--namespace prefect-latest \
--mem-request=16Gi \
--mem-limit=128Gi \
--cpu-request=4 \
--cpu-limit=32 \
--image-pull-secrets azurecr-secret \
--label k8s \
--label prod \
--label latest \
--rbac | kubectl apply --namespace=prefect-latest -f -
we get:
deployment.apps/prefect-agent created
<http://role.rbac.authorization.k8s.io/prefect-agent-rbac|role.rbac.authorization.k8s.io/prefect-agent-rbac> unchanged
error: unable to recognize "STDIN": no matches for kind "RoleBinding" in version "<http://rbac.authorization.k8s.io/v1beta1|rbac.authorization.k8s.io/v1beta1>"
We should be using
<http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>
What should we do?Anna Geller
prefect agent kubernetes install \
-k ${PREFECT_DE_PROD_API} \
--namespace prefect-latest \
--mem-request=16Gi \
--mem-limit=128Gi \
--cpu-request=4 \
--cpu-limit=32 \
--image-pull-secrets azurecr-secret \
--label k8s \
--label prod \
--label latest \
--rbac >> prefect_agent.yaml
Then manually change the v1beta1 to v1 and apply:
kubectl apply -f prefect_agent.yaml --namespace=prefect-latest
Klemen Strojan
12/09/2021, 1:17 PM