Skip to content

Commit

Permalink
1.22: fix flannel upgrade image
Browse files Browse the repository at this point in the history
Signed-off-by: zufardhiyaulhaq <zufardhiyaulhaq@gmail.com>
  • Loading branch information
zufardhiyaulhaq committed Jun 9, 2022
1 parent 06820b6 commit 2be3fa8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions roles/upgrade-kubernetes-addons/templates/flannel.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ spec:
serviceAccountName: flannel
initContainers:
- name: install-cni-plugin
image: rancher/mirrored-flannelcni-flannel-cni-plugin:v1.0.0
image: rancher/mirrored-flannelcni-flannel-cni-plugin:v1.1.0
command:
- cp
args:
Expand All @@ -181,7 +181,7 @@ spec:
- name: cni-plugin
mountPath: /opt/cni/bin
- name: install-cni
image: quay.io/coreos/flannel:{{ kubernetes.addonsComponents.flannel.version }}
image: rancher/mirrored-flannelcni-flannel:{{ kubernetes.addonsComponents.flannel.version }}
command:
- cp
args:
Expand All @@ -195,7 +195,7 @@ spec:
mountPath: /etc/kube-flannel/
containers:
- name: kube-flannel
image: quay.io/coreos/flannel:{{ kubernetes.addonsComponents.flannel.version }}
image: rancher/mirrored-flannelcni-flannel:{{ kubernetes.addonsComponents.flannel.version }}
command:
- /opt/bin/flanneld
args:
Expand All @@ -222,11 +222,15 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: EVENT_QUEUE_DEPTH
value: "5000"
volumeMounts:
- name: run
mountPath: /run/flannel
- name: flannel-cfg
mountPath: /etc/kube-flannel/
- name: xtables-lock
mountPath: /run/xtables.lock
volumes:
- name: run
hostPath:
Expand All @@ -240,3 +244,7 @@ spec:
- name: flannel-cfg
configMap:
name: kube-flannel-cfg
- name: xtables-lock
hostPath:
path: /run/xtables.lock
type: FileOrCreate

0 comments on commit 2be3fa8

Please sign in to comment.