sixeyed / kiamol

Learn Kubernetes in a Month of Lunches
Creative Commons Attribution Share Alike 4.0 International
305 stars 223 forks source link

CH 11 Jenkins do not have required permissions for manage replica set #20

Open czmoku opened 3 years ago

czmoku commented 3 years ago

Hi

I've notice that jenkins pipeline failed in ch 11. Please fix this issue and change this: ch11/insfrastructure/jenkins.yaml:77:

- apiGroups: ["apps"]
  resources: ["deployments", "replicasets"]
  verbs: ["get","list","create","delete"]

Tested on latest K3S, pulled today.

wolfewa commented 2 years ago

Getting this error at the end of the build and the build will fail Error: query: failed to query with labels: secrets is forbidden: User "system:serviceaccount:default:jenkins" cannot list resource "secrets" in API group "" in the namespace "kiamol-ch11-test"

when I updated the above the error resolved.