Skip to content

Commit 8e13302

Browse files
committed
chore(workflow): add system config
1 parent df88304 commit 8e13302

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

_scripts/install.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,19 @@ function install_helm {
3333
helm repo add drycc https://charts.drycc.cc/${CHANNEL:-stable}
3434
}
3535

36+
function pre_system_config {
37+
iptables -F
38+
iptables -X
39+
iptables -F -t nat
40+
iptables -X -t nat
41+
iptables -P FORWARD ACCEPT
42+
swapoff -a
43+
sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
44+
mount bpffs -t bpf /sys/fs/bpf
45+
}
46+
3647
function pre_install_k3s {
48+
pre_system_config
3749
if [[ "${INSTALL_DRYCC_MIRROR}" == "cn" ]] ; then
3850
mkdir -p /etc/rancher/k3s
3951
cat << EOF > "/etc/rancher/k3s/registries.yaml"
@@ -83,7 +95,6 @@ function install_k3s_agent {
8395

8496

8597
function install_components {
86-
mount bpffs -t bpf /sys/fs/bpf
8798
helm repo update
8899

89100
echo -e "\\033[32m---> Waiting for helm to install components...\\033[0m"

src/quickstart/install-workflow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ If you want to add more Linux distribution support, please submit a issue on git
1616

1717
Some basic software needs to be installed before installing drycc workflow.
1818

19+
### OS configuration
20+
21+
K8s requires a large number of ports. If you are not sure what they are, please close the local firewall or open these ports.
22+
At the same time, because k8s you need system time, you need to ensure that the system time is correct.
23+
1924
### Installing open-iscsi
2025

2126
The command used to install open-iscsi differs depending on the Linux distribution.

0 commit comments

Comments
 (0)