mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-22 02:07:46 +07:00
Move all apps to ArgoCD
This commit is contained in:
parent
c20166a69d
commit
d9865f6da6
@ -1,6 +1,10 @@
|
||||
.POSIX:
|
||||
|
||||
default: apply
|
||||
default: init apply
|
||||
|
||||
init:
|
||||
kubectl create namespace argocd --dry-run=client -o yaml | kubectl --kubeconfig ../infra/kube_config.yaml apply -f -
|
||||
kubectl --kubeconfig ../infra/kube_config.yaml apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
|
||||
apply:
|
||||
kubectl --kubeconfig ../infra/kube_config.yaml --namespace argocd apply --filename .
|
||||
|
25
apps/cert-manager.yaml
Normal file
25
apps/cert-manager.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: cert-manager
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: cert-manager
|
||||
server: ''
|
||||
source:
|
||||
path: ''
|
||||
repoURL: 'https://charts.jetstack.io'
|
||||
targetRevision: 1.3.1
|
||||
chart: cert-manager
|
||||
helm:
|
||||
parameters:
|
||||
- name: 'installCRDs'
|
||||
value: 'true'
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
21
apps/longhorn.yaml
Normal file
21
apps/longhorn.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: longhorn
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: longhorn-system
|
||||
server: ''
|
||||
source:
|
||||
path: ''
|
||||
repoURL: 'https://charts.longhorn.io'
|
||||
targetRevision: 1.1.0
|
||||
chart: longhorn
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
28
apps/metallb.yaml
Normal file
28
apps/metallb.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: metallb
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: kube-system
|
||||
server: ''
|
||||
source:
|
||||
path: ''
|
||||
repoURL: 'https://charts.bitnami.com/bitnami'
|
||||
targetRevision: 2.3.5
|
||||
chart: metallb
|
||||
helm:
|
||||
parameters:
|
||||
- name: 'configInline'
|
||||
value: |
|
||||
address-pools:
|
||||
- name: default
|
||||
protocol: layer2
|
||||
addresses:
|
||||
- 192.168.1.150-192.168.1.180 # TODO (optimize) Use metal values for MetalLB values
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
21
apps/nginx.yaml
Normal file
21
apps/nginx.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: ingress-nginx
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: kube-system
|
||||
server: ''
|
||||
source:
|
||||
path: ''
|
||||
repoURL: 'https://kubernetes.github.io/ingress-nginx'
|
||||
targetRevision: 3.29.0
|
||||
chart: ingress-nginx
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
21
apps/prometheus.yaml
Normal file
21
apps/prometheus.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: prometheus
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: monitoring-system
|
||||
server: ''
|
||||
source:
|
||||
path: ''
|
||||
repoURL: 'https://prometheus-community.github.io/helm-charts'
|
||||
targetRevision: 15.1.1
|
||||
chart: kube-prometheus-stack
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
21
apps/vault.yaml
Normal file
21
apps/vault.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: vault
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: vault
|
||||
server: ''
|
||||
source:
|
||||
path: ''
|
||||
repoURL: 'https://helm.releases.hashicorp.com'
|
||||
targetRevision: 0.11.0
|
||||
chart: vault
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
Loading…
Reference in New Issue
Block a user