mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
ops(k8s): create app of apps project, deploy flannel with it
This commit is contained in:
parent
de91366e09
commit
bcbc560217
7 changed files with 96 additions and 26 deletions
21
k8s/system/flannel/application.yaml
Normal file
21
k8s/system/flannel/application.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: flannel
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: system
|
||||
source:
|
||||
repoURL: 'https://flannel-io.github.io/flannel/'
|
||||
targetRevision: v0.24.x
|
||||
helm:
|
||||
valuesObject:
|
||||
podCidr: 10.42.0.0/16
|
||||
chart: flannel
|
||||
destination:
|
||||
namespace: kube-flannel
|
||||
server: https://10.1.1.173:6443
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
18
k8s/system/project.yaml
Normal file
18
k8s/system/project.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: system
|
||||
namespace: argocd
|
||||
spec:
|
||||
description: "Underlying services and controllers required for the operation of the cluster"
|
||||
destinations:
|
||||
- namespace: "*"
|
||||
server: https://10.1.1.173:6443
|
||||
clusterResourceWhitelist:
|
||||
- group: "*"
|
||||
kind: "*"
|
||||
namespaceResourceWhitelist:
|
||||
- group: "*"
|
||||
kind: "*"
|
||||
sourceRepos:
|
||||
- "*"
|
||||
Loading…
Add table
Add a link
Reference in a new issue