-
Notifications
You must be signed in to change notification settings - Fork 27
/
startup-script.patch
24 lines (24 loc) · 1.04 KB
/
startup-script.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/packages/system/cilium/charts/cilium/templates/cilium-agent/daemonset.yaml b/packages/system/cilium/charts/cilium/templates/cilium-agent/daemonset.yaml
index 2949091..3996e2f 100644
--- a/packages/system/cilium/charts/cilium/templates/cilium-agent/daemonset.yaml
+++ b/packages/system/cilium/charts/cilium/templates/cilium-agent/daemonset.yaml
@@ -114,6 +114,19 @@ spec:
exec:
command:
- "true"
+ {{- else if eq .Values.cni.chainingMode "generic-veth" }}
+ command:
+ - /bin/bash
+ - -ec
+ - |
+ # Workaround: https://github.com/kubeovn/kube-ovn/issues/4089
+ DEV=$(ip -j addr | jq --arg ip "$NODE_IP" -r '.[] | select(.addr_info[] | .local == $ip).ifname')
+ echo "using device: $DEV"
+ echo "waiting for ovn0 device"
+ until ip link show ovn0; do
+ sleep 5;
+ done
+ exec cilium-agent --config-dir=/tmp/cilium/config-map
{{- else }}
command:
- cilium-agent