新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
BIN
learn/learn-kubernetes-master/kiamol/ch17/lab/solution/pods.png
Normal file
BIN
learn/learn-kubernetes-master/kiamol/ch17/lab/solution/pods.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -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
|
||||
@@ -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 |
Reference in New Issue
Block a user