32 lines
643 B
YAML
32 lines
643 B
YAML
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: kubernetes-dashboard-admin
|
||
|
namespace: devops
|
||
|
|
||
|
---
|
||
|
|
||
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
metadata:
|
||
|
name: kubernetes-dashboard-admin
|
||
|
namespace: devops
|
||
|
annotations:
|
||
|
kubernetes.io/service-account.name: kubernetes-dashboard-admin
|
||
|
type: kubernetes.io/service-account-token
|
||
|
|
||
|
---
|
||
|
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
name: kubernetes-dashboard-admin
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: cluster-admin
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: kubernetes-dashboard-admin
|
||
|
namespace: devops
|