新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: rbac-tools
|
||||
labels:
|
||||
kiamol: ch17
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: rbac-tools
|
||||
labels:
|
||||
kiamol: ch17
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: rbac-tools
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: rbac-tools
|
||||
spec:
|
||||
serviceAccountName: rbac-tools
|
||||
containers:
|
||||
- name: rbac-tools
|
||||
image: kiamol/ch17-rbac-tools
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: rbac-tools-admin
|
||||
namespace: default
|
||||
labels:
|
||||
kiamol: ch17
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: rbac-tools
|
||||
namespace: default
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: cluster-admin # think *very* carefully before you do this!
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
Reference in New Issue
Block a user