alert-motherboard-87423
04/28/2023, 2:14 PMhostNetwork: true
pods can access the internet. I’m missing something ?? Please help me fix the issue.
Thanks,
Ashisbland-account-99790
04/28/2023, 3:13 PMalert-motherboard-87423
04/28/2023, 3:19 PMcurl -sfL <https://get.k3s.io> | sh -s - \
--write-kubeconfig-mode "0644" \
--token "token" \
--node-external-ip "ip" \
--tls-san "ip" \
--node-taint "CriticalAddonsOnly=true:NoExecute" \
--disable=traefik
--flannel-backend=host-gw
--flannel-external-ip
Thanks,
Ashisbland-account-99790
04/28/2023, 3:25 PMalert-motherboard-87423
04/28/2023, 3:28 PMbland-account-99790
04/28/2023, 3:50 PMip r
alert-motherboard-87423
04/28/2023, 4:14 PMip r
bland-account-99790
04/28/2023, 4:41 PMsudo brctl show
?alert-motherboard-87423
04/29/2023, 6:27 AMbland-account-99790
05/01/2023, 1:44 PMip r
, could you try deploying without --flannel-backend=host-gw
? Just to verify that it works with vxlan. There might be a bug with flannel and host-gwalert-motherboard-87423
05/01/2023, 2:40 PM--flannel-backend=host-gw
but no luck. I have attached the output of ip r.
bland-account-99790
05/03/2023, 11:16 AMalert-motherboard-87423
05/03/2023, 12:27 PMbland-account-99790
05/04/2023, 11:23 AMdefault via 10.1.1.1 dev eth0 proto dhcp src 10.1.1.9 metric 100
10.1.1.0/24 dev eth0 proto kernel scope link src 10.1.1.9
10.42.0.0/24 via 10.42.0.0 dev flannel.1 onlink
10.42.1.0/24 dev cni0 proto kernel scope link src 10.42.1.1
cat /var/run/flannel/subnet.env
FLANNEL_NETWORK=10.42.0.0/16
FLANNEL_SUBNET=10.42.1.1/24
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true
cat /var/run/flannel/subnet.env
FLANNEL_NETWORK=10.42.0.0/16
FLANNEL_SUBNET=10.42.0.1/24
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true
10.42.1.0/24
it uses the cni0 bridge, as this traffic will be local. For traffic going to the server node (10.42.1.0/24
), it uses flannel.1 interface, which is the vxlan interfacealert-motherboard-87423
05/05/2023, 7:50 AMbland-account-99790
05/05/2023, 7:54 AMkubectl get nodes -o wide
please?alert-motherboard-87423
05/05/2023, 7:55 AMbland-account-99790
05/05/2023, 7:55 AM10.128.0.7
?alert-motherboard-87423
05/05/2023, 7:56 AMbland-account-99790
05/05/2023, 7:56 AMcat /var/run/flannel/subnet.env
in each node?alert-motherboard-87423
05/05/2023, 7:59 AMbland-account-99790
05/05/2023, 8:01 AMFLANNEL_NETWORK
is differentalert-motherboard-87423
05/05/2023, 8:04 AMcurl -sfL <https://get.k3s.io> | K3S_TOKEN="token" K3S_URL="<https://server_address:6443>" sh -s - \
--node-label --node-external-ip=ip "<http://svccontroller.k3s.cattle.io/enablelb=true|svccontroller.k3s.cattle.io/enablelb=true>" --with-node-id
bland-account-99790
05/05/2023, 8:05 AMserver_address
is the node-external-ip
of the server, right?kubeclt get nodes -o yaml | grep podCIDRs -n5
please?alert-motherboard-87423
05/05/2023, 8:07 AMbland-account-99790
05/05/2023, 8:09 AMserver_address is master ip
yes, but master's external ip (public ip), right?10.42.0.0/16
and it gave 10.42.0.0/24
to master and 10.42.1.0/24
to the agent. However, your flannel config in the agent is using 10.244.1.0/24
. I wonder if there was an old k3s cluster there and things were not cleaned up properly. Could you show me the output of ip a show dev flannel.1
in the agent please?alert-motherboard-87423
05/05/2023, 8:15 AMbland-account-99790
05/05/2023, 8:16 AMip a
?alert-motherboard-87423
05/05/2023, 8:17 AMbland-account-99790
05/05/2023, 8:17 AM--flannel-backend=host-gw
?alert-motherboard-87423
05/05/2023, 8:18 AMbland-account-99790
05/05/2023, 8:20 AM10.244.0.0/16
as podCIDR?alert-motherboard-87423
05/05/2023, 8:22 AMbland-account-99790
05/05/2023, 8:22 AMalert-motherboard-87423
05/05/2023, 8:23 AMbland-account-99790
05/05/2023, 8:23 AMwireguard-native
k3s-agent-uninstall.sh
in the agent and k3s-uninstall.sh
in the server/var/run/flannel/subnet.env
does not exist in both server and agent. Also verify that the cni0
interface disappearedalert-motherboard-87423
05/05/2023, 8:35 AM/var/run/flannel/subnet.env
This file exist on both server and agent. cni0
interface didn’t disappeared.bland-account-99790
05/05/2023, 2:55 PMalert-motherboard-87423
05/08/2023, 6:44 AMbland-account-99790
05/11/2023, 2:17 PMalert-motherboard-87423
05/14/2023, 7:06 PMbland-account-99790
05/15/2023, 4:32 PM10.42.1.0/24
and 10.42.0.0/24
, and your cni0 interface IP is not in that range?