mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
ops(k8s): add argocd to argocd
This commit is contained in:
parent
01144518ce
commit
6fce029ff5
5 changed files with 30 additions and 5 deletions
|
|
@ -7,9 +7,9 @@ spec:
|
||||||
destination:
|
destination:
|
||||||
namespace: default
|
namespace: default
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
project: default
|
project: system
|
||||||
source:
|
source:
|
||||||
repoURL: 'https://github.com/gensokyo-zone/infrastructure'
|
repoURL: "https://github.com/gensokyo-zone/infrastructure"
|
||||||
path: k8s/system
|
path: k8s/system
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
|
|
|
||||||
20
k8s/system/argocd/application.yaml
Normal file
20
k8s/system/argocd/application.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: argocd
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: system
|
||||||
|
source:
|
||||||
|
repoURL: "https://argoproj.github.io/argo-helm/"
|
||||||
|
targetRevision: v2.9.3
|
||||||
|
chart: argo-cd
|
||||||
|
helm:
|
||||||
|
valuesObject:
|
||||||
|
destination:
|
||||||
|
namespace: argocd
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
4
k8s/system/argocd/kustomization.yaml
Normal file
4
k8s/system/argocd/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- application.yaml
|
||||||
|
|
@ -6,12 +6,12 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
project: system
|
project: system
|
||||||
source:
|
source:
|
||||||
repoURL: 'https://flannel-io.github.io/flannel/'
|
repoURL: "https://flannel-io.github.io/flannel/"
|
||||||
targetRevision: v0.24.x
|
targetRevision: v0.24.x
|
||||||
|
chart: flannel
|
||||||
helm:
|
helm:
|
||||||
valuesObject:
|
valuesObject:
|
||||||
podCidr: 10.42.0.0/16
|
podCidr: 10.42.0.0/16
|
||||||
chart: flannel
|
|
||||||
destination:
|
destination:
|
||||||
namespace: kube-flannel
|
namespace: kube-flannel
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,4 @@ kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- project.yaml
|
- project.yaml
|
||||||
- flannel
|
- flannel
|
||||||
|
- argocd
|
||||||
Loading…
Add table
Add a link
Reference in a new issue