-
Notifications
You must be signed in to change notification settings - Fork 40
403 Client Error: Forbidden for url #35
Comments
The RBAC manifest clearly allows get/list on namespaces: https://github.com/hjacobs/kube-janitor/blob/master/deploy/common/rbac.yaml --- do you really use the latest repo master branch? ( |
I just deployed both
|
Yes, that |
@gregfriedland which cluster are you deploying to? Maybe the cluster has additional auth/restrictions (webhook, ..)? |
having the same issue in a GKE cluster -- 403 on trying to hit the k8s API for namespaces. RBAC looks right to me. also tried getting onto the pod and doing a curl manually to confirm $ wget --header="Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" --no-check-certificate https://IPADDR:443/api/v1/namespaces
Connecting to IPADDR:443 (IPADDR:443)
wget: server returned error: HTTP/1.1 403 Forbidden |
Had a similar issue with a 403 on GKE. I chose to install it in a 'kube-janitor' namespace. The ClusterRoleBinding https://github.com/hjacobs/kube-janitor/blob/master/deploy/common/rbac.yaml#L38 grants the 'kube-janitor' role to the 'kube-janitor' service account in the 'default' namespace. Changing this to point to the correct namespace account worked and resolved the issue for me. |
@craig410 do you mind doing a PR for the README and the |
Hello,
I've installed
kube-janitor
as instructed:git clone
,kubectl apply -f deploy/common/
, thenkubectl apply -f deploy/deployment/
. However, I'm getting the following error in the pod logs. I'm not sure where10.222.0.1
is coming from as there aren't any nodes in cluster (inlcuding masters) with that IP.Any ideas?
Best,
Greg
(This says
0.6
but I've also triedmaster
).The text was updated successfully, but these errors were encountered: