Skip to content

What RBAC permissions are required for flux check to run successfully? #5217

Discussion options

You must be logged in to vote

This is the RBAC needed for the Flux CLI commands that don't alter the cluster state such as flux get, flux events, flux check:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: flux-view
rules:
- apiGroups:
  - source.toolkit.fluxcd.io
  - kustomize.toolkit.fluxcd.io
  - helm.toolkit.fluxcd.io
  - notification.toolkit.fluxcd.io
  - image.toolkit.fluxcd.io
  resources:
  - '*'
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - apiextensions.k8s.io
  resources:
  - customresourcedefinitions
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - apps
  resources:
  - deployments
  - replicasets
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - 

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@attributeerror
Comment options

@stefanprodan
Comment options

@attributeerror
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by attributeerror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants