-
Notifications
You must be signed in to change notification settings - Fork 0
/
05-applications.yml
34 lines (33 loc) · 1.02 KB
/
05-applications.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: Deploy Fleet projects to deploy ArgoCD applications
hosts: upstream
tags: upstream, rancher, argocd, fleet
tasks:
- name: Add Fleet project
become: true
kubernetes.core.k8s:
state: present
kubeconfig: "{{ kubeconfig_path }}"
namespace: "{{ item }}"
definition:
apiVersion: fleet.cattle.io/v1alpha1
kind: GitRepo
metadata:
name: argocd-projects
spec:
branch: main
insecureSkipTLSVerify: false
paths:
- /kubernetes/fleet-argocd-projects
repo: https://github.com/diademiemi/project_homelab_v3.git
targets:
- clusterSelector:
matchExpressions:
- key: provider.cattle.io
operator: NotIn
values:
- harvester
loop:
- fleet-default # Deploy to downstream clusters
- fleet-local # Deploy to upstream cluster
...