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

View File

@@ -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

View File

@@ -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