-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: refactor to align with documentation (#122)
* refactor to align with documentation Signed-off-by: Michael Fornaro <[email protected]> * remove examples that are outdated Signed-off-by: Michael Fornaro <[email protected]> * revert some unintended changes Signed-off-by: Michael Fornaro <[email protected]> * revert some unintended changes Signed-off-by: Michael Fornaro <[email protected]> * remove cilium helm implementation and align with quick install method Signed-off-by: Michael Fornaro <[email protected]> * addressing PR comments Signed-off-by: Michael Fornaro <[email protected]>
- Loading branch information
Showing
19 changed files
with
142 additions
and
448 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export KUBECONFIG=$(expand_path ./ansible/playbooks/output/k8s-config.yaml) | ||
export ANSIBLE_CONFIG=$(expand_path ./ansible/ansible.cfg) |
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
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 |
---|---|---|
@@ -1,58 +1,5 @@ | ||
--- | ||
|
||
# See https://github.com/cilium/cilium/issues/10645 | ||
- name: set net.ipv4.conf.*.rp_filter to 0 for systemd 245 workaround | ||
ansible.posix.sysctl: | ||
name: '{{ item }}' | ||
value: '0' | ||
sysctl_file: /etc/sysctl.d/98-override_cilium_rp_filter.conf | ||
reload: false | ||
loop: | ||
- net.ipv4.conf.all.rp_filter | ||
- net.ipv4.conf.default.rp_filter | ||
notify: restart systemd-sysctl | ||
|
||
- name: mount sys-fs-bpf | ||
ansible.posix.mount: | ||
path: /sys/fs/bpf | ||
src: bpffs | ||
opts: defaults | ||
state: mounted | ||
fstype: bpf | ||
|
||
- name: add Cilium Helm Repo | ||
community.kubernetes.helm_repository: | ||
name: cilium | ||
repo_url: "https://helm.cilium.io/" | ||
|
||
- name: deploy Cilium | ||
community.kubernetes.helm: | ||
name: cilium | ||
chart_ref: cilium/cilium | ||
release_namespace: kube-system | ||
chart_version: "{{ cni_cilium_helm_version }}" | ||
values: "{{ lookup('template', 'values.yaml.j2') | from_yaml }}" | ||
|
||
- name: patch cilium-operator for helm chart bug | ||
community.kubernetes.k8s: | ||
state: present | ||
definition: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cilium-operator | ||
namespace: kube-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: cilium-operator | ||
image: cilium/operator-dev:{{ cni_cilium_image_version }} | ||
|
||
|
||
- name: Apply kube-router manifests | ||
community.kubernetes.k8s: | ||
state: present | ||
template: 'generic-kuberouter-only-advertise-routes.yaml.j2' | ||
when: | ||
- cni_kube_router_enabled | ||
- name: applying cilium | ||
command: | ||
cmd: kubectl apply -f https://raw.githubusercontent.com/cilium/cilium/v1.9/install/kubernetes/quick-install.yaml | ||
creates: /etc/cni/net.d/10-cilium.conflist |
129 changes: 0 additions & 129 deletions
129
ansible/roles/cni/templates/generic-kuberouter-only-advertise-routes.yaml.j2
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.