Skip to content

Commit 6b679d9

Browse files
committed
chore(workflow): change cilium values
1 parent 75b6e58 commit 6b679d9

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

_scripts/install.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ function configure_os {
9696
echo 'fs.inotify.max_user_instances = 65535' >> /etc/sysctl.conf
9797
fi
9898
sysctl -p
99+
100+
cpufreq=$(ls /sys/devices/system/cpu/cpu*/cpufreq >/dev/null 2>&1 || echo "false")
101+
if [[ $cpufreq != "false" ]]; then
102+
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
103+
echo performance > $cpu
104+
done
105+
fi
99106
echo -e "\\033[32m---> Configuring kernel parameters finish\\033[0m"
100107
}
101108

@@ -116,6 +123,8 @@ EOF
116123
endpoint = ["https://quay-mirror.drycc.cc", "https://quay.io"]
117124
[plugins.cri.registry.mirrors."gcr.io"]
118125
endpoint = ["https://quay-mirror.drycc.cc", "https://gcr.io"]
126+
[plugins.cri.registry.mirrors."k8s.gcr.io"]
127+
endpoint = ["https://k8s-mirror.drycc.cc", "https://registry.k8s.io"]
119128
[plugins.cri.registry.mirrors."registry.k8s.io"]
120129
endpoint = ["https://k8s-mirror.drycc.cc", "https://registry.k8s.io"]
121130
EOF
@@ -256,15 +265,15 @@ function install_network() {
256265
echo -e "\\033[32m---> Start installing network...\\033[0m"
257266
api_server_address=(`ip -o route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'`)
258267
helm install cilium $CHARTS_URL/cilium \
259-
--set tunnel=vxlan \
260268
--set operator.replicas=1 \
269+
--set bpf.masquerade=true \
261270
--set bandwidthManager.enabled=true \
271+
--set bandwidthManager.bbr=true \
262272
--set kubeProxyReplacement=strict \
273+
--set hubble.enabled=false \
274+
--set hostPort.enabled=true \
263275
--set k8sServiceHost=${KUBE_API_SERVER_ADDRESS:-$api_server_address} \
264276
--set k8sServicePort=${KUBE_API_SERVER_PORT:-"6443"} \
265-
--set global.containerRuntime.integration="containerd" \
266-
--set global.containerRuntime.socketPath="/var/run/k3s/containerd/containerd.sock" \
267-
--set hostPort.enabled=true \
268277
--namespace kube-system --wait
269278
echo -e "\\033[32m---> Network installed!\\033[0m"
270279
}

0 commit comments

Comments
 (0)