Skip to content

Commit

Permalink
fix(platform): update cilium according to the latest doc change (tkes…
Browse files Browse the repository at this point in the history
  • Loading branch information
huxiaoliang committed May 27, 2021
1 parent 2e15aff commit 5b86893
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions pkg/platform/provider/baremetal/manifests/cilium/cilium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,29 +110,27 @@ data:
# wait-bpf-mount makes init container wait until bpf filesystem is mounted
wait-bpf-mount: "false"

masquerade: "false"
enable-bpf-masquerade: "false"
{{ if eq .NetworkMode "underlay" }}
enable-endpoint-routes: "true"
auto-create-cilium-node-resource: "true"
{{ end }}

{{ if eq .NetworkMode "overlay" }}
masquerade: "true"
install-iptables-rules: "true"
enable-local-node-route: "true"
ipam: "kubernetes"
tunnel: vxlan
{{ else }}
masquerade: "false"
install-iptables-rules: "false"
enable-local-node-route: "false"
ipam: "crd"
tunnel: disabled
enable-endpoint-routes: "true"
auto-create-cilium-node-resource: "true"
{{ end }}
kube-proxy-replacement: "partial"
enable-bpf-masquerade: "false"
enable-xt-socket-fallback: "true"
install-iptables-rules: "false"

auto-direct-node-routes: "false"
enable-bandwidth-manager: "false"
enable-local-redirect-policy: "false"
kube-proxy-replacement: "probe"
kube-proxy-replacement-healthz-bind-address: ""
enable-health-check-nodeport: "true"
node-port-bind-protection: "true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if eq .NetworkMode "overlay" }}
{{ if eq .NetworkMode "underlay" }}
---
apiVersion: v1
data:
Expand Down

0 comments on commit 5b86893

Please sign in to comment.