Skip to content
Snippets Groups Projects
Unverified Commit 0d0cc8cf authored by Victor Morales's avatar Victor Morales Committed by GitHub
Browse files

Add multi architeture support to flannel (#6166)

parent 5bd937ec
Branches
Tags
No related merge requests found
...@@ -38,11 +38,16 @@ data: ...@@ -38,11 +38,16 @@ data:
{% endif %} {% endif %}
} }
} }
{% for arch in ['amd64', 'arm64', 'arm', 'ppc64le', 's390x'] %}
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
{% if arch == 'amd64' %}
name: kube-flannel name: kube-flannel
{% else %}
name: kube-flannel-ds-{{ arch }}
{% endif %}
namespace: kube-system namespace: kube-system
labels: labels:
tier: node tier: node
...@@ -61,7 +66,7 @@ spec: ...@@ -61,7 +66,7 @@ spec:
serviceAccountName: flannel serviceAccountName: flannel
containers: containers:
- name: kube-flannel - name: kube-flannel
image: {{ flannel_image_repo }}:{{ flannel_image_tag }} image: {{ flannel_image_repo }}:{{ flannel_image_tag }}-{{ arch }}
imagePullPolicy: {{ k8s_image_pull_policy }} imagePullPolicy: {{ k8s_image_pull_policy }}
resources: resources:
limits: limits:
...@@ -101,10 +106,10 @@ spec: ...@@ -101,10 +106,10 @@ spec:
- key: kubernetes.io/arch - key: kubernetes.io/arch
operator: In operator: In
values: values:
- amd64 - {{ arch }}
initContainers: initContainers:
- name: install-cni - name: install-cni
image: {{ flannel_image_repo }}:{{ flannel_image_tag }} image: {{ flannel_image_repo }}:{{ flannel_image_tag }}-{{ arch }}
command: command:
- cp - cp
args: args:
...@@ -137,3 +142,4 @@ spec: ...@@ -137,3 +142,4 @@ spec:
rollingUpdate: rollingUpdate:
maxUnavailable: {{ serial | default('20%') }} maxUnavailable: {{ serial | default('20%') }}
type: RollingUpdate type: RollingUpdate
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment