mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-28 08:12:53 +00:00
Limit access for apps releases
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
dbf4a7d57e
commit
03d4282e95
2 changed files with 29 additions and 0 deletions
|
@ -4,3 +4,29 @@ metadata:
|
|||
name: podinfo
|
||||
labels:
|
||||
toolkit.fluxcd.io/tenant: dev-team
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
labels:
|
||||
toolkit.fluxcd.io/tenant: dev-team
|
||||
name: flux
|
||||
namespace: podinfo
|
||||
---
|
||||
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 namespace
|
||||
# being a RoleBinding instead of a ClusterRoleBinding
|
||||
name: cluster-admin
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: flux
|
||||
namespace: podinfo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue