mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-08 20:15:03 +10:00
Grant ai-bot full admin ownership of home-apps namespace
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
# Grant ai-bot ServiceAccount (ai namespace) permissions to manage EndpointSlices
|
||||
# in home-apps namespace, so ArgoCD can sync the hermes-dashboard EndpointSlice.
|
||||
# Grant ai-bot ServiceAccount (ai namespace) FULL ADMIN ownership of home-apps namespace.
|
||||
# This makes ai-bot the owner of all resources in home-apps, enabling ArgoCD to manage
|
||||
# EndpointSlices and any other resources for services exposed via Ingress.
|
||||
#
|
||||
# The ai-bot ServiceAccount is used by the kubeconfig at ~/.kube/config.yaml
|
||||
# Apply: kubectl apply -f adhoc-config/hermes-dashboard-rbac.yaml
|
||||
#
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: hermes-dashboard-ep-admin
|
||||
name: home-apps-admin
|
||||
namespace: home-apps
|
||||
rules:
|
||||
- apiGroups: ["discovery.k8s.io"]
|
||||
resources: ["endpointslices"]
|
||||
verbs: ["get", "list", "watch", "create", "patch", "delete"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["*"]
|
||||
verbs: ["*"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: hermes-dashboard-ep-admin
|
||||
name: home-apps-admin
|
||||
namespace: home-apps
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: hermes-dashboard-ep-admin
|
||||
name: home-apps-admin
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: ai-bot
|
||||
|
||||
Reference in New Issue
Block a user