mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-27 15:53:19 +00:00
Add staging layout
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
df51542b21
commit
85633b9f12
5 changed files with 48 additions and 0 deletions
4
clusters/staging/podinfo.yaml
Normal file
4
clusters/staging/podinfo.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: podinfo
|
1
hub/flux-system/gotk-components.yaml
Normal file
1
hub/flux-system/gotk-components.yaml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# This file will be generated automatically by flux boostrap.
|
1
hub/flux-system/gotk-sync.yaml
Normal file
1
hub/flux-system/gotk-sync.yaml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# This file will be generated automatically by flux boostrap.
|
19
hub/flux-system/kustomization.yaml
Normal file
19
hub/flux-system/kustomization.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- gotk-components.yaml
|
||||||
|
- gotk-sync.yaml
|
||||||
|
labels:
|
||||||
|
- pairs:
|
||||||
|
toolkit.fluxcd.io/tenant: sre-team
|
||||||
|
patches:
|
||||||
|
- patch: |
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/containers/0/args/-
|
||||||
|
value: --concurrent=20
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/containers/0/args/-
|
||||||
|
value: --requeue-dependency=5s
|
||||||
|
target:
|
||||||
|
kind: Deployment
|
||||||
|
name: "(kustomize-controller|helm-controller|source-controller)"
|
23
hub/staging.yaml
Normal file
23
hub/staging.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: staging
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: cluster-sync
|
||||||
|
namespace: staging
|
||||||
|
spec:
|
||||||
|
interval: 1h
|
||||||
|
retryInterval: 3m
|
||||||
|
timeout: 5m
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
|
path: ./clusters/staging
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
kubeConfig:
|
||||||
|
secretRef:
|
||||||
|
name: cluster-kubeconfig
|
Loading…
Add table
Add a link
Reference in a new issue