Skip to content
Snippets Groups Projects
Commit 42d2ed51 authored by stefanprodan's avatar stefanprodan
Browse files

Add install manifests

parent e3040592
No related branches found
No related tags found
No related merge requests found
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/fluxcd/kustomize-controller/config//crd?ref=v0.0.1-alpha.4
- github.com/fluxcd/kustomize-controller/config//manager?ref=v0.0.1-alpha.4
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/fluxcd/source-controller/config//crd?ref=v0.0.1-alpha.2
- github.com/fluxcd/source-controller/config//manager?ref=v0.0.1-alpha.2
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: gitops-system
resources:
- namespace.yaml
- ../bases/source-controller
- ../bases/kustomize-controller
- ../rbac
- ../policies
transformers:
- labels.yaml
apiVersion: builtin
kind: LabelTransformer
metadata:
name: labels
labels:
app.kubernetes.io/instance: gitops-system
fieldSpecs:
- path: metadata/labels
create: true
apiVersion: v1
kind: Namespace
metadata:
name: gitops-system
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-ingress
spec:
podSelector: {}
policyTypes:
- Ingress
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deny-ingress.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-reconciler
rules:
- apiGroups: ['*']
resources: ['*']
verbs: ['*']
- nonResourceURLs: ['*']
verbs: ['*']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-reconciler
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-reconciler
subjects:
- kind: ServiceAccount
name: default
namespace: system
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster_role.yaml
- role.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: crd-controller
rules:
- apiGroups: ['source.fluxcd.io']
resources: ['*']
verbs: ['*']
- apiGroups: ['kustomize.fluxcd.io']
resources: ['*']
verbs: ['*']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: crd-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: crd-controller
subjects:
- kind: ServiceAccount
name: default
namespace: system
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment