Add a way to deploy cilium alongside another CNI (#6373)
Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
This commit is contained in:
parent
8818073ff3
commit
1a1fe99669
5 changed files with 10 additions and 6 deletions
|
@ -677,7 +677,7 @@ downloads:
|
||||||
- k8s-cluster
|
- k8s-cluster
|
||||||
|
|
||||||
cilium:
|
cilium:
|
||||||
enabled: "{{ kube_network_plugin == 'cilium' }}"
|
enabled: "{{ kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool }}"
|
||||||
container: true
|
container: true
|
||||||
repo: "{{ cilium_image_repo }}"
|
repo: "{{ cilium_image_repo }}"
|
||||||
tag: "{{ cilium_image_tag }}"
|
tag: "{{ cilium_image_tag }}"
|
||||||
|
@ -686,7 +686,7 @@ downloads:
|
||||||
- k8s-cluster
|
- k8s-cluster
|
||||||
|
|
||||||
cilium_init:
|
cilium_init:
|
||||||
enabled: "{{ kube_network_plugin == 'cilium' }}"
|
enabled: "{{ kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool }}"
|
||||||
container: true
|
container: true
|
||||||
repo: "{{ cilium_init_image_repo }}"
|
repo: "{{ cilium_init_image_repo }}"
|
||||||
tag: "{{ cilium_init_image_tag }}"
|
tag: "{{ cilium_init_image_tag }}"
|
||||||
|
@ -695,7 +695,7 @@ downloads:
|
||||||
- k8s-cluster
|
- k8s-cluster
|
||||||
|
|
||||||
cilium_operator:
|
cilium_operator:
|
||||||
enabled: "{{ kube_network_plugin == 'cilium' }}"
|
enabled: "{{ kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool }}"
|
||||||
container: true
|
container: true
|
||||||
repo: "{{ cilium_operator_image_repo }}"
|
repo: "{{ cilium_operator_image_repo }}"
|
||||||
tag: "{{ cilium_operator_image_tag }}"
|
tag: "{{ cilium_operator_image_tag }}"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: kubernetes-apps/network_plugin/cilium
|
- role: kubernetes-apps/network_plugin/cilium
|
||||||
when: kube_network_plugin == 'cilium'
|
when: kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool
|
||||||
tags:
|
tags:
|
||||||
- cilium
|
- cilium
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
assert:
|
assert:
|
||||||
that: ansible_kernel.split('-')[0] is version('4.9.17', '>=')
|
that: ansible_kernel.split('-')[0] is version('4.9.17', '>=')
|
||||||
when:
|
when:
|
||||||
- kube_network_plugin == 'cilium'
|
- kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool
|
||||||
- not ignore_assert_errors
|
- not ignore_assert_errors
|
||||||
|
|
||||||
- name: Stop if bad hostname
|
- name: Stop if bad hostname
|
||||||
|
|
|
@ -33,3 +33,7 @@ cilium_monitor_aggregation: medium
|
||||||
cilium_preallocate_bpf_maps: false
|
cilium_preallocate_bpf_maps: false
|
||||||
cilium_tofqdns_enable_poller: false
|
cilium_tofqdns_enable_poller: false
|
||||||
cilium_enable_legacy_services: false
|
cilium_enable_legacy_services: false
|
||||||
|
|
||||||
|
# Deploy cilium even if kube_network_plugin is not cilium.
|
||||||
|
# This enables to deploy cilium alongside another CNI to replace kube-proxy.
|
||||||
|
cilium_deploy_additionally: false
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: network_plugin/cilium
|
- role: network_plugin/cilium
|
||||||
when: kube_network_plugin == 'cilium'
|
when: kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool
|
||||||
tags:
|
tags:
|
||||||
- cilium
|
- cilium
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue