This commit is contained in:
Thomas Kruse
2026-09-02 22:11:05 +02:00
commit 24b9717db2
49 changed files with 818 additions and 0 deletions

17
rbac/commands Normal file
View File

@ -0,0 +1,17 @@
kubectl create role pod-reader --verb=get --verb=list --verb=watch --resource=pods --dry-run=client -o yaml
kubectl create rolebinding pod-reader-binding \
--clusterrole=pod-reader-role \
--serviceaccount=demo:pod-reader \
--dry-run=client -o yaml
kubectl create serviceaccount pod-reader --dry-run=client -o yaml
kubectl create token pod-reader
kubectl create token default --duration 10m
curl --cacert ca.crt -H "Authorization: Bearer $TOKEN" https://kubernetes.default/api/v1/namespaces/demo/pods