Closed leth closed 6 years ago
Reproduced the error on a test GKE cluster.
This is the result of a failed onboarding process, when we fail to create a ClusterRole with the admin rights. To simulate the onboarding error, I removed gcloud
from my PATH. This looks like the following:
serviceaccount "weave-agent" configured
clusterrolebinding "weave-agent" configured
deployment "weave-agent" created
Error from server (Forbidden): clusterroles.rbac.authorization.k8s.io "weave-agent" is forbidden: attempt to grant extra privileges:.
...
time="2018-02-26T18:56:42Z" level=info msg="Updating self from https://get.dev.weave.works/k8s/agent.yaml?instanceID=REDACTED"
time="2018-02-26T18:56:42Z" level=error msg="Failed to fetch latest deployment replicateset revision: failed to retrieve deployment: deployments.extensions \"weave-agent\" is forbidden: User \"system:serviceaccount:weave:weave-agent\" cannot get deployments.extensions in the namespace \"weave\": clusterrole.rbac.authorization.k8s.io \"weave-agent\" not found\nUnknown user \"system:serviceaccount:weave:weave-agent\""
We could either:
kubectl
errors out, given the apply isn't atomic
https://sentry.io/weaveworks/launcher-agent/issues/443372991/