mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-28 00:03: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
|
@ -26,7 +26,7 @@ spec:
|
|||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: releases-sync
|
||||
name: infra-controllers-sync
|
||||
namespace: staging
|
||||
spec:
|
||||
dependsOn:
|
||||
|
@ -37,7 +37,62 @@ spec:
|
|||
timeout: 5m
|
||||
prune: true
|
||||
wait: true
|
||||
path: ./clusters/staging/releases
|
||||
path: ./clusters/staging/infrastructure/controllers
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
patches:
|
||||
- target:
|
||||
kind: HelmRelease
|
||||
patch: |
|
||||
- op: add
|
||||
path: /spec/kubeConfig
|
||||
value:
|
||||
secretRef:
|
||||
name: cluster-kubeconfig
|
||||
- op: add
|
||||
path: /spec/serviceAccountName
|
||||
value: flux-cluster-admin
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-configs-sync
|
||||
namespace: staging
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: infra-controllers-sync
|
||||
targetNamespace: staging
|
||||
interval: 1h
|
||||
retryInterval: 3m
|
||||
timeout: 5m
|
||||
prune: true
|
||||
wait: true
|
||||
path: ./clusters/staging/infrastructure/configs
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
kubeConfig:
|
||||
secretRef:
|
||||
name: cluster-kubeconfig
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: apps-sync
|
||||
namespace: staging
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: infra-configs-sync
|
||||
targetNamespace: staging
|
||||
interval: 1h
|
||||
retryInterval: 3m
|
||||
timeout: 5m
|
||||
prune: true
|
||||
wait: true
|
||||
path: ./clusters/staging/apps
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue