manifests: add cluster reconciler RBAC and SA

pull/17/head
stefanprodan 5 years ago
parent 58c096e7c0
commit b9a8100dbb

@ -1,13 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
apiVersion: v1
kind: ServiceAccount
metadata:
name: cluster-reconciler
rules:
- apiGroups: ['*']
resources: ['*']
verbs: ['*']
- nonResourceURLs: ['*']
verbs: ['*']
namespace: system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
@ -16,8 +11,8 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-reconciler
name: cluster-admin
subjects:
- kind: ServiceAccount
name: default
name: cluster-reconciler
namespace: system

@ -1,5 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/fluxcd/kustomize-controller/config//crd?ref=v0.0.1-alpha.5
- github.com/fluxcd/kustomize-controller/config//manager?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.6
- cluster_role.yaml
patchesStrategicMerge:
- patch.yaml

@ -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
kind: Kustomization
resources:
- cluster_role.yaml
- role.yaml

Loading…
Cancel
Save