-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #501 from ricsanfre/flux
Migration to FluxCD
- Loading branch information
Showing
866 changed files
with
23,235 additions
and
4,094 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
|
||
- name: "Wait for K3S worker nodes to be ready. Nodes Ready status when Cilium has been installed" | ||
command: | ||
cmd: "kubectl get nodes {{ item }}" | ||
register: nodes | ||
until: | ||
- '" Ready " in nodes.stdout' | ||
retries: 10 | ||
delay: 60 | ||
with_items: "{{ groups['k3s_worker'] }}" | ||
|
||
- name: Wait for Cilium CRDs to be ready | ||
become: false | ||
shell: | | ||
set -o pipefail | ||
while ! kubectl wait --for condition=established --timeout=60s crd/ciliuml2announcementpolicies.cilium.io crd/ciliuml2announcementpolicies.cilium.io | ||
do | ||
sleep 10 | ||
done | ||
args: | ||
executable: /bin/bash | ||
changed_when: false | ||
|
||
- name: Cilium configuration | ||
become: false | ||
shell: | | ||
set -o pipefail | ||
kubectl kustomize --enable-helm --load-restrictor=LoadRestrictionsNone \ | ||
../kubernetes/platform/cilium/config/overlays/"{{overlay}}" | kubectl apply -f - | ||
args: | ||
executable: /bin/bash | ||
register: output | ||
changed_when: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
|
||
- name: Deploy Flux CD | ||
shell: | | ||
kubectl kustomize \ | ||
../kubernetes/clusters/bootstrap/flux | kubectl apply -f - | ||
args: | ||
executable: /bin/bash | ||
|
||
- name: Create Github secret | ||
shell: | | ||
kubectl create secret generic flux-system -n flux-system \ | ||
--from-literal=username=git \ | ||
--from-literal=password="{{vault.flux.github.pat}}" | ||
when: git_private_repo | ||
args: | ||
executable: /bin/bash | ||
changed_when: false | ||
|
||
- name: Bootstrap applications | ||
shell: | | ||
kubectl kustomize \ | ||
../kubernetes/clusters/"{{overlay}}"/config | kubectl apply -f - | ||
args: | ||
executable: /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ | |
loop: | ||
- longhorn-util | ||
- velero-cli | ||
- linkerd-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.