move deployment to github

This commit is contained in:
2023-01-04 22:26:57 +00:00
parent c1a4980a2d
commit af396c154d
3 changed files with 6 additions and 11168 deletions

View File

@@ -1,29 +1,14 @@
---
- name: copy configs
copy:
src: ./roles/k3s/argocd/templates/
dest: /opt/argocd
owner: administrator
group: administrator
mode: "0664"
force: yes
- name: copy configs
copy:
src: "{{ lookup('env','kubeseal') }}"
dest: /opt/kubeseal.yaml
owner: administrator
group: administrator
mode: "0600"
force: yes
- name: Apply Kubeseal master key
command: k3s kubectl apply -f /opt/kubeseal.yaml --force
- name: Apply ArgoCD
command: k3s kubectl apply -f /opt/argocd/argocd.yaml -n argocd
- name: Apply ArgoCD namespace
command: k3s kubectl apply -f https://raw.githubusercontent.com/DeveloperDurp/homelab/main/argocd/namespace.yaml -n argocd
- name: Apply ArgoCD deployment
command: k3s kubectl apply -f https://raw.githubusercontent.com/DeveloperDurp/homelab/main/argocd/deployment.yaml -n argocd
- name: Apply ArgoCD Apps
command: k3s kubectl apply -f /opt/argocd/apps.yaml -n argocd
command: k3s kubectl apply -f https://raw.githubusercontent.com/DeveloperDurp/homelab/main/argocd/apps.yaml -n argocd

View File

@@ -1,22 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/DeveloperDurp/homelab.git
targetRevision: main
path: argocd
directory:
recurse: true
destination:
namespace: argocd
name: in-cluster
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

File diff suppressed because it is too large Load Diff