mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +00:00
manifests: add cluster reconciler RBAC and SA
This commit is contained in:
parent
58c096e7c0
commit
b9a8100dbb
4 changed files with 18 additions and 13 deletions
|
|
@ -1,13 +1,8 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: v1
|
||||||
kind: ClusterRole
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: cluster-reconciler
|
name: cluster-reconciler
|
||||||
rules:
|
namespace: system
|
||||||
- apiGroups: ['*']
|
|
||||||
resources: ['*']
|
|
||||||
verbs: ['*']
|
|
||||||
- nonResourceURLs: ['*']
|
|
||||||
verbs: ['*']
|
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
|
|
@ -16,8 +11,8 @@ metadata:
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: cluster-reconciler
|
name: cluster-admin
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: default
|
name: cluster-reconciler
|
||||||
namespace: system
|
namespace: system
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- github.com/fluxcd/kustomize-controller/config//crd?ref=v0.0.1-alpha.5
|
- github.com/fluxcd/kustomize-controller/config//crd?ref=v0.0.1-alpha.6
|
||||||
- github.com/fluxcd/kustomize-controller/config//manager?ref=v0.0.1-alpha.5
|
- github.com/fluxcd/kustomize-controller/config//manager?ref=v0.0.1-alpha.6
|
||||||
|
- cluster_role.yaml
|
||||||
|
patchesStrategicMerge:
|
||||||
|
- patch.yaml
|
||||||
|
|
|
||||||
8
manifests/bases/kustomize-controller/patch.yaml
Normal file
8
manifests/bases/kustomize-controller/patch.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: kustomize-controller
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
serviceAccountName: cluster-reconciler
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- cluster_role.yaml
|
|
||||||
- role.yaml
|
- role.yaml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue