move deployment to github
This commit is contained in:
@@ -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
|
- name: Apply Kubeseal master key
|
||||||
command: k3s kubectl apply -f /opt/kubeseal.yaml --force
|
command: k3s kubectl apply -f /opt/kubeseal.yaml --force
|
||||||
|
|
||||||
- name: Apply ArgoCD
|
- name: Apply ArgoCD namespace
|
||||||
command: k3s kubectl apply -f /opt/argocd/argocd.yaml -n argocd
|
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
|
- 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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
Reference in New Issue
Block a user