77 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2026-07-21 21:02:06 -03:00
# services/hermes/rbac.yaml
2026-05-19 19:17:14 -03:00
apiVersion: v1
kind: ServiceAccount
metadata:
2026-07-21 21:02:06 -03:00
name: hermes-triage
namespace: hermes
2026-05-19 19:17:14 -03:00
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
2026-07-21 21:02:06 -03:00
name: hermes-triage-readonly
2026-05-19 19:17:14 -03:00
rules:
- apiGroups: [""]
resources:
- configmaps
- endpoints
- events
- namespaces
- nodes
- persistentvolumeclaims
- persistentvolumes
- pods
- pods/log
- replicationcontrollers
- serviceaccounts
2026-05-19 19:17:14 -03:00
- services
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
resources:
- cronjobs
- jobs
verbs: ["get", "list", "watch"]
- apiGroups: ["networking.k8s.io"]
resources:
- ingresses
- networkpolicies
verbs: ["get", "list", "watch"]
- apiGroups: ["helm.toolkit.fluxcd.io"]
resources:
- helmreleases
verbs: ["get", "list", "watch"]
- apiGroups: ["kustomize.toolkit.fluxcd.io"]
resources:
- kustomizations
verbs: ["get", "list", "watch"]
- apiGroups: ["source.toolkit.fluxcd.io"]
resources:
- gitrepositories
- helmrepositories
verbs: ["get", "list", "watch"]
- apiGroups: ["image.toolkit.fluxcd.io"]
resources:
- imagepolicies
- imagerepositories
- imageupdateautomations
verbs: ["get", "list", "watch"]
2026-05-19 19:17:14 -03:00
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
2026-07-21 21:02:06 -03:00
name: hermes-triage-readonly
2026-05-19 19:17:14 -03:00
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
2026-07-21 21:02:06 -03:00
name: hermes-triage-readonly
2026-05-19 19:17:14 -03:00
subjects:
- kind: ServiceAccount
2026-07-21 21:02:06 -03:00
name: hermes-triage
namespace: hermes