mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-27 15:53:19 +00:00
Add infra controllers
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
f05ca938d5
commit
f57ac9377a
18 changed files with 187 additions and 39 deletions
9
clusters/staging/apps/kustomization.yaml
Normal file
9
clusters/staging/apps/kustomization.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../apps/staging
|
||||
patches:
|
||||
- path: podinfo-values.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: podinfo
|
17
clusters/staging/apps/podinfo-values.yaml
Normal file
17
clusters/staging/apps/podinfo-values.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: podinfo
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
version: ">=1.0.0-alpha"
|
||||
test:
|
||||
enable: false
|
||||
values:
|
||||
ingress:
|
||||
hosts:
|
||||
- host: podinfo.staging
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../apps/staging
|
||||
- ../../../../infrastructure/configs
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../../infrastructure/controllers
|
7
clusters/staging/tenants/cert-manager.yaml
Normal file
7
clusters/staging/tenants/cert-manager.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: cert-manager
|
||||
labels:
|
||||
toolkit.fluxcd.io/tenant: sre-team
|
8
clusters/staging/tenants/ingress-nginx.yaml
Normal file
8
clusters/staging/tenants/ingress-nginx.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: ingress-nginx
|
||||
labels:
|
||||
toolkit.fluxcd.io/tenant: sre-team
|
||||
|
|
@ -15,7 +15,7 @@ metadata:
|
|||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
# This binding limits the access to the namespace
|
||||
# This binding limits the access to the current namespace
|
||||
# being a RoleBinding instead of a ClusterRoleBinding
|
||||
name: cluster-admin
|
||||
subjects:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue