When ever you are doing deployment from Jenkins to EKS cluster, you may get this error:
Api call failed with code 403, detailed message: { "kind": "Status", "apiVersion": "v1", "metadata": { }, "status": "Failure", "message": "namespaces is forbidden: User \"system:anonymous\" cannot list namespaces at the cluster scope", "reason": "Forbidden", "details": { "kind": "namespaces" }, "code": 403
Work around or the fix: You get this error because you're getting blocked by RBAC policies. Basically, RBAC policies set to restrict the resources you use and limits a few of your action.
There are two possibilities, either you haven't created an RBAC or it's somehow restricting the cluster access.
By default, your clusterrolebinding has system:anonymous set which blocks the cluster access.
Execute the following command, it will set a clusterrole as cluster-admin which will give you the required access.
kubectl create clusterrolebinding cluster-system-anonymous --clusterrole=cluster-admin --user=system:anonymous
979AE9EBC2
ReplyDeletehacker arıyorum
kiralık hacker
tütün dünyası
-
-
DD83ABBECE
ReplyDeleteTakipçi Satın Al
Whiteout Survival Hediye Kodu
Coin Kazanma
İdle Office Tycoon Hediye Kodu
Whiteout Survival Hediye Kodu
23F667A2
ReplyDeleteForum
Forum
Forum
Forum
Forum
Forum
Forum
Forum
Forum
37556C28
ReplyDeleteMut
Yalıkavak
Serdivan
Erdemli
Edremit
İslahiye
Cizre
Akçakoca
Döşemealtı
DD9D1883
ReplyDeleteBurhaniye
Bafra
Avşa
Bornova
Ortaca
Nizip
Çerkezköy
Ayaş
Narlıdere
31B460B5
ReplyDeleteAvşa
Araban
Siverek
Bafra
Kepez
Birecik
Dinar
Aliağa
Alaşehir
A49DDA95
ReplyDeleteSelçuk
Elvankent
İçmeler
Ezine
Silopi
Cide
Susurluk
Boyabat
Çubuk