Skip to content

Commit

Permalink
fix: add --iface=$(HOST_IP) arg in flannel
Browse files Browse the repository at this point in the history
without this arg, flannel will auto-detect host ip as outside encapsulation
packet. If there're muilt-ips in host net interface and the `first` ip is
not what we need, network may fail.

Signed-off-by: forrestchen <[email protected]>
  • Loading branch information
ChenLingPeng authored and choujimmy committed Mar 6, 2020
1 parent 1fccdb1 commit 15036fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/platform/provider/baremetal/phases/galaxy/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ spec:
args:
- --ip-masq
- --kube-subnet-mgr
- --iface=$(HOST_IP)
resources:
requests:
cpu: "100m"
Expand All @@ -195,6 +196,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
volumeMounts:
- name: run
mountPath: /run
Expand Down

0 comments on commit 15036fc

Please sign in to comment.