mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
40 lines
708 B
YAML
40 lines
708 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: ai-bot
|
|
namespace: ai
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: ai-bot-token
|
|
namespace: ai
|
|
annotations:
|
|
kubernetes.io/service-account.name: ai-bot
|
|
type: kubernetes.io/service-account-token
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: ai-bot-full-access
|
|
namespace: ai
|
|
rules:
|
|
- apiGroups: ["*"]
|
|
resources: ["*"]
|
|
verbs: ["*"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: ai-bot-full-access-binding
|
|
namespace: ai
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: ai-bot
|
|
namespace: ai
|
|
roleRef:
|
|
kind: Role
|
|
name: ai-bot-full-access
|
|
apiGroup: rbac.authorization.k8s.io
|