flux2-hub-spoke-example/deploy/tenants/podinfo.yaml
Stefan Prodan 98577807dd
Refactor structure
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2024-04-10 12:55:53 +03:00

24 lines
561 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: podinfo
labels:
toolkit.fluxcd.io/tenant: dev-team
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
toolkit.fluxcd.io/tenant: dev-team
name: flux
namespace: podinfo
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
# This binding limits the access to the current namespace
# being a RoleBinding instead of a ClusterRoleBinding
name: cluster-admin
subjects:
- kind: ServiceAccount
name: flux-restricted
namespace: "${CLUSTER_NAME}"