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 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

@ -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…
Cancel
Save