Kubernetes the hard way Networking: различия между версиями

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
 
 
(не показаны 3 промежуточные версии этого же участника)
Строка 5: Строка 5:
 
=Сети в k8s=
 
=Сети в k8s=
   
  +
Эта статья касается только моего сетапа и может быть не применима к другим случаям
 
  +
<PRE>
  +
net.ipv4.conf.default.rp_filter=0
  +
net.ipv4.conf.all.rp_filter=0
  +
  +
  +
for K in $(sysctl -a | grep rp_filter | awk '{print $1}'); do sysctl ${K}=0; done
  +
</PRE>
  +
<PRE>
  +
/etc/modules-load.d/modules.conf
  +
# /etc/modules: kernel modules to load at boot time.
  +
#
  +
# This file contains the names of kernel modules that should be loaded
  +
# at boot time, one per line. Lines beginning with "#" are ignored.
  +
  +
br_netfilter
  +
</PRE>
 
Эта статья касается только моего сетапа и может быть не применима к другим случаям
  +
 
=<code>kube-apiserver</code>=
 
=<code>kube-apiserver</code>=
 
=<code>kube-controller-manager</code>=
 
=<code>kube-controller-manager</code>=
  +
Настройка вводит в заблуждение
  +
<br>
  +
Насколько я понимаю она важна для работы в клауде но не для работы на своем железе
 
<PRE>
 
<PRE>
 
--allocate-node-cidrs = true # Следует ли выделять и устанавливать CIDR Pod на облачном провайдере
 
--allocate-node-cidrs = true # Следует ли выделять и устанавливать CIDR Pod на облачном провайдере

Текущая версия на 18:07, 14 ноября 2022

Сети в k8s

net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.all.rp_filter=0


for K  in $(sysctl -a | grep rp_filter | awk '{print $1}'); do sysctl ${K}=0; done
/etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

br_netfilter

Эта статья касается только моего сетапа и может быть не применима к другим случаям

kube-apiserver

kube-controller-manager

Настройка вводит в заблуждение
Насколько я понимаю она важна для работы в клауде но не для работы на своем железе

--allocate-node-cidrs = true # Следует ли выделять и устанавливать CIDR Pod на облачном провайдере
--cluster-cidr = 10.244.0.0 / 16 # Диапазон CIDR Pod в кластере требует, чтобы --allocate-node-cidrs был  true