-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathovn_controller.sh
executable file
·37 lines (31 loc) · 1.3 KB
/
ovn_controller.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
export K8S_NODE="worker-h09"
export OVN_LOG_LEVEL="info"
# quay.io/zshi/ovn-daemonset:arm-20210222
# build on aarch64, ovn-k8s PR:2005
# quay.io/zshi/ovn-daemonset:arm-20210301
# build on aarch64, ovn-k8s PR:2005, ipsec_* entrypoint script
# quay.io/zshi/ovn-daemonset:arm-2042-20210402
# build on aarch64, ovn-k8s PR:2042, ipsec_* entrypoint script
export OVN_K8S_IMAGE="quay.io/zshi/ovn-daemonset:arm-2042-20210402"
mkdir -p /var/run/ovn
mkdir -p /var/lib/openvswitch/etc
mkdir -p /var/lib/openvswitch/data
mkdir -p /var/run/ovn
mkdir -p /root/ovn-ca
mkdir -p /root/ovn-cert
mkdir -p /root/ovnkube-config
podman run --pid host --network host --user 0 --name ovn-controller -dit --privileged \
-v /var/run/openvswitch:/run/openvswitch \
-v /var/run/ovn:/run/ovn \
-v /var/lib/openvswitch/etc:/etc/openvswitch \
-v /var/lib/openvswitch/etc:/etc/ovn \
-v /var/lib/openvswitch/data:/var/lib/openvswitch \
-v /root/ovnkube-config:/run/ovnkube-config \
-v /root/ovn-ca:/ovn-ca \
-v /root/ovn-cert:/ovn-cert \
-e K8S_NODE=$K8S_NODE \
-e OVN_LOG_LEVEL=$OVN_LOG_LEVEL \
--entrypoint=/usr/bin/ovn-controller \
$OVN_K8S_IMAGE \
unix:/var/run/openvswitch/db.sock -vfile:off --no-chdir --pidfile=/var/run/ovn/ovn-controller.pid -p /ovn-cert/tls.key -c /ovn-cert/tls.crt -C /ovn-ca/ca-bundle.crt -vconsole:info