Add descheduler to operations layer

This commit is contained in:
Khue Doan 2021-08-22 23:51:38 +07:00
parent 53b3c388ef
commit 73771d39c3
5 changed files with 36 additions and 22 deletions

View File

@ -1,21 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: descheduler
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
name: in-cluster
namespace: kube-system
server: ''
source:
path: ''
repoURL: 'https://kubernetes-sigs.github.io/descheduler/'
targetRevision: 0.20.0
chart: descheduler
project: default
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -0,0 +1,28 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: operations
spec:
generators:
- git:
repoURL: https://github.com/khuedoan/homelab.git
revision: master
directories:
- path: operations/*
template:
metadata:
name: '{{path.basename}}'
spec:
destination:
name: in-cluster
namespace: '{{path.basename}}'
project: default
source:
repoURL: https://github.com/khuedoan/homelab.git
path: '{{path}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@ -5,7 +5,7 @@ resources:
# - projects/system.yaml
- applicationsets/bootstrap.yaml
- applicationsets/system.yaml
# - applicationsets/operations.yaml
- applicationsets/operations.yaml
# - applicationsets/applications.yaml
namespace: argocd

View File

@ -0,0 +1,7 @@
apiVersion: v2
name: descheduler
version: 0.20.0
dependencies:
- name: descheduler
version: 0.20.0
repository: https://kubernetes-sigs.github.io/descheduler/

View File