titan-iac/services/comms/atlasbot-rbac.yaml

48 lines
1.4 KiB
YAML
Raw Normal View History

2026-01-08 01:55:58 -03:00
# services/comms/atlasbot-rbac.yaml
2026-01-06 14:46:36 -03:00
apiVersion: v1
kind: ServiceAccount
metadata:
name: atlasbot
namespace: comms
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: atlasbot-readonly
rules:
- apiGroups: [""]
resources: ["namespaces", "nodes", "pods", "services", "endpoints", "events"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "daemonsets", "replicasets"]
verbs: ["get", "list", "watch"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["traefik.io"]
resources: ["ingressroutes", "middlewares", "serverstransports"]
verbs: ["get", "list", "watch"]
- apiGroups: ["kustomize.toolkit.fluxcd.io"]
resources: ["kustomizations"]
verbs: ["get", "list", "watch"]
- apiGroups: ["helm.toolkit.fluxcd.io"]
resources: ["helmreleases"]
verbs: ["get", "list", "watch"]
- apiGroups: ["source.toolkit.fluxcd.io"]
resources: ["gitrepositories", "helmrepositories", "buckets"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: atlasbot-readonly
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: atlasbot-readonly
subjects:
- kind: ServiceAccount
name: atlasbot
namespace: comms