-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy cilium ansible playbook & roles
- Loading branch information
Showing
10 changed files
with
24 additions
and
19 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
- hosts: kubernetes_masters[0] | ||
become: yes | ||
roles: | ||
- role: cilium-deploy | ||
vars: | ||
cilium_version: "1.9.8" | ||
hubble_enabled: true |
Empty file.
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,3 @@ | ||
# defaults/main.yml | ||
cilium_version: "1.9.5" | ||
hubble_enabled: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# tasks/main.yml | ||
- name: Check if Cilium is already installed | ||
ansible.builtin.shell: kubectl get namespace cilium | grep -c 'cilium' | ||
register: cilium_namespace | ||
ignore_errors: true | ||
|
||
- name: Deploy Cilium with Helm | ||
ansible.builtin.shell: | | ||
helm upgrade --install cilium cilium/cilium --version {{ cilium_version }} | ||
--namespace kube-system | ||
--set hubble.relay.enabled={{ hubble_enabled }} | ||
--set hubble.ui.enabled={{ hubble_enabled }} | ||
--set global.hubble.metrics.enabled="{dns,drop,tcp,flow,port-distribution,icmp,http}" | ||
when: cilium_namespace.stdout == "0" |
File renamed without changes.