add vars for cilium init container (#3893)

* add vars for cilium init container

* make yamllint happy

* add var cilium_init in downloads
pull/3909/head
ihard 2018-12-18 11:34:19 +03:00 committed by Kubernetes Prow Robot
parent 4a7f829ecf
commit 30a9149b52
4 changed files with 14 additions and 3 deletions

View File

@ -167,6 +167,8 @@ contiv_ovs_image_repo: "contiv/ovs"
contiv_ovs_image_tag: "latest"
cilium_image_repo: "docker.io/cilium/cilium"
cilium_image_tag: "{{ cilium_version }}"
cilium_init_image_repo: "docker.io/library/busybox"
cilium_init_image_tag: "1.28.4"
kube_router_image_repo: "cloudnativelabs/kube-router"
kube_router_image_tag: "{{ kube_router_version }}"
multus_image_repo: "docker.io/nfvpe/multus"
@ -314,6 +316,15 @@ downloads:
groups:
- k8s-cluster
cilium_init:
enabled: "{{ kube_network_plugin == 'cilium' }}"
container: true
repo: "{{ cilium_init_image_repo }}"
tag: "{{ cilium_init_image_tag }}"
sha256: "{{ cilium_init_digest_checksum|default(None) }}"
groups:
- k8s-cluster
multus:
enabled: "{{ kube_network_plugin_multus }}"
container: true

View File

@ -127,7 +127,7 @@ kube_kubeadm_scheduler_extra_args: {}
## Extra control plane host volume mounts
## Example:
#apiserver_extra_volumes:
# apiserver_extra_volumes:
# - name: name
# hostPath: /host/path
# mountPath: /mount/path

View File

@ -32,7 +32,7 @@ spec:
serviceAccountName: cilium
initContainers:
- name: clean-cilium-state
image: docker.io/library/busybox:1.28.4
image: {{ cilium_init_image_repo }}:{{ cilium_init_image_tag }}
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'if [ "${CLEAN_CILIUM_STATE}" = "true" ]; then rm -rf /var/run/cilium/state; rm -rf /sys/fs/bpf/tc/globals/cilium_*; fi']
volumeMounts: