This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kube-explorer-lab-pods-ns
namespace: kiamol-ch17-lab
labels:
kiamol: ch17-lab
subjects:
- kind: ServiceAccount
name: kube-explorer-lab
namespace: kiamol-ch17-lab
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: default-pod-reader-lab

View File

@@ -0,0 +1,42 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: default-sa-reader-lab
labels:
kiamol: ch17-lab
rules:
- apiGroups: [""] #core
resources: ["serviceaccounts"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kube-explorer-lab-sa-default
namespace: default
labels:
kiamol: ch17-lab
subjects:
- kind: ServiceAccount
name: kube-explorer-lab
namespace: kiamol-ch17-lab
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: default-sa-reader-lab
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kube-explorer-lab-sa-ns
namespace: kiamol-ch17-lab
labels:
kiamol: ch17-lab
subjects:
- kind: ServiceAccount
name: kube-explorer-lab
namespace: kiamol-ch17-lab
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: default-sa-reader-lab

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB