1.4 KiB
1.4 KiB
k8s кластер
Нужно
- rke - https://github.com/rancher/rke/releases
- k8s-lens - https://docs.k8slens.dev
- helm - https://helm.sh/docs/intro/quickstart/
- Три машины на ubuntu 22.04 + docker
Разворачиваем куб
rke up --ignore-docker-version
- полученный конфиг импортируем в линзу
- в настройках подключаем метрики
Полезные команды
apt update && apt install -y mc htop zip wget curl git jq net-tools gnupg2 screen open-iscsi
curl https://get.docker.com -o install.sh && sh install.sh
Твики
is apparently in use by the system; will not make a filesystem here!
- Create the default configuration file /etc/multipath.conf if not existed
- Add the following line to blacklist section devnode "^sd[a-z0-9]+"
blacklist {
devnode "^sd[a-z0-9]+"
}
- Restart multipath service# systemctl restart multipathd.service
- Verify that configuration is applied# multipath -t
Failed to allocate directory watch: Too many open files
на всех нодах кластера:
sysctl fs.inotify.max_user_watches=65536
sysctl fs.inotify.max_user_instances=8192
sysctl net.ipv4.tcp_max_syn_backlog=100000
sysctl net.core.somaxconn=100000
sysctl net.ipv4.tcp_wmem='4096 12582912 16777216'
sysctl net.ipv4.tcp_rmem='4096 12582912 16777216'
sysctl net.ipv4.ip_local_port_range='10240 65535'