Add staging layout

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2024-04-10 01:07:06 +03:00
parent df51542b21
commit 85633b9f12
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
5 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: podinfo

View file

@ -0,0 +1 @@
# This file will be generated automatically by flux boostrap.

View file

@ -0,0 +1 @@
# This file will be generated automatically by flux boostrap.

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