adamant-kite-43734
06/06/2023, 1:17 AMcreamy-pencil-82913
06/06/2023, 1:47 AMred-lizard-14453
06/06/2023, 1:48 AMcreamy-pencil-82913
06/06/2023, 1:48 AMcreamy-pencil-82913
06/06/2023, 1:48 AMred-lizard-14453
06/06/2023, 1:49 AMred-lizard-14453
06/06/2023, 6:59 PM$ kubectl logs kustomize-controller-666f8f4b5f-ppwhk --previous
{"level":"info","ts":"2023-06-06T18:40:59.283Z","logger":"controller-runtime.metrics","msg":"Metrics server is starting to listen","addr":":8080"}
{"level":"error","ts":"2023-06-06T18:41:29.308Z","logger":"setup","msg":"unable to create controller","controller":"kustomize-controller","error":"failed setting index fields: failed to get API group resources: unable to retrieve the complete list of server APIs: <http://kustomize.toolkit.fluxcd.io/v1|kustomize.toolkit.fluxcd.io/v1>: Get \"https://[fdde:91f3:4d41:3100::1]:443/apis/kustomize.toolkit.fluxcd.io/v1\": dial tcp [fdde:91f3:4d41:3100::1]:443: i/o timeout"}
When I checkout iptables, I see a rule:
-A KUBE-SERVICES -d fdde:91f3:4d41:3100::1/128 -p tcp -m comment --comment "default/kubernetes:https cluster IP" -m tcp --dport 443 -j KUBE-SVC-NPX46M4PTMTKRN6Y
That rule says:
-A KUBE-SVC-NPX46M4PTMTKRN6Y ! -s fdde:91f4:4d41:3000::/56 -d fdde:91f3:4d41:3100::1/128 -p tcp -m comment --comment "default/kubernetes:https cluster IP" -m tcp --dport 443 -j KUBE-MARK-MASQ
-A KUBE-SVC-NPX46M4PTMTKRN6Y -m comment --comment "default/kubernetes:https -> [2602:814:4000:3::15]:6443" -j KUBE-SEP-CTIXJTB53XIITEK7
and KUBE-MARQ-MASQ sets 0x4000:
-A KUBE-MARK-MASQ -j MARK --set-xmark 0x4000/0x4000
Since this pod (kustomize controller) has a Pod IP inside the PodCIDR:
IPs:
IP: 10.42.3.8
IP: fdde:91f4:4d41:3003::8
It is getting ignored by NPX46M because the not source would fail. either I'm having a brainfart and it's obvious whats wrong, or there's something amiss here.creamy-pencil-82913
06/06/2023, 7:54 PMred-lizard-14453
06/06/2023, 7:55 PMcreamy-pencil-82913
06/06/2023, 7:55 PMred-lizard-14453
06/06/2023, 7:55 PMred-lizard-14453
06/06/2023, 7:56 PMcreamy-pencil-82913
06/06/2023, 8:00 PMred-lizard-14453
06/06/2023, 8:01 PMred-lizard-14453
06/06/2023, 8:18 PMred-lizard-14453
06/06/2023, 8:18 PMcreamy-pencil-82913
06/06/2023, 8:19 PMcreamy-pencil-82913
06/06/2023, 8:19 PMred-lizard-14453
06/06/2023, 9:05 PMcurl -sfL <https://get.k3s.io> | sh -s - --flannel-backend=wireguard-native --cluster-cidr=fdc0:9e85:e99e::/56,10.42.0.0/16 --service-cidr=fd62:a374:67c2::/112,10.43.0.0/16 --node-ip=2602:814:4000:3::15,10.174.3.15 --node-external-ip=2602:814:4000:3::15,23.154.40.15 --disable traefik --disable servicelb --disable local-storage --datastore-endpoint=<postgres://k3s-prod>:redacted@redacted:15432/redacted?sslmode=disable
error from kustomize controller:
$ kubectl logs kustomize-controller-666f8f4b5f-6n986 --previous
{"level":"info","ts":"2023-06-06T20:58:30.895Z","logger":"controller-runtime.metrics","msg":"Metrics server is starting to listen","addr":":8080"}
{"level":"error","ts":"2023-06-06T20:59:00.900Z","logger":"setup","msg":"unable to create controller","controller":"kustomize-controller","error":"failed setting index fields: failed to get API group resources: unable to retrieve the complete list of server APIs: <http://kustomize.toolkit.fluxcd.io/v1|kustomize.toolkit.fluxcd.io/v1>: Get \"https://[fd62:a374:67c2::1]:443/apis/kustomize.toolkit.fluxcd.io/v1\": dial tcp [fd62:a374:67c2::1]:443: i/o timeout"}
rules:
-A KUBE-SERVICES -d fd62:a374:67c2::1/128 -p tcp -m comment --comment "default/kubernetes:https cluster IP" -m tcp --dport 443 -j KUBE-SVC-NPX46M4PTMTKRN6Y
-A KUBE-SVC-NPX46M4PTMTKRN6Y ! -s fdc0:9e85:e99e::/56 -d fd62:a374:67c2::1/128 -p tcp -m comment --comment "default/kubernetes:https cluster IP" -m tcp --dport 443 -j KUBE-MARK-MASQ
red-lizard-14453
06/06/2023, 9:06 PMred-lizard-14453
06/06/2023, 9:13 PMred-lizard-14453
06/06/2023, 9:17 PMred-lizard-14453
06/06/2023, 9:18 PMred-lizard-14453
06/06/2023, 9:21 PMcreamy-pencil-82913
06/06/2023, 9:22 PMred-lizard-14453
06/06/2023, 9:22 PM22:22:31.993897 IP6 2602:814:4000:3::f203.10250 > fdc0:9e85:e99e::2.41458: Flags [S.], seq 3442809166, ack 2077726981, win 64704, options [mss 1360,sackOK,TS val 2234894331 ecr 914303222,nop,wscale 7], length 0
red-lizard-14453
06/06/2023, 9:23 PMroot@tpi2n4:/var/lib/rancher/k3s/agent/etc/flannel# wg show all dump | grep e99e
flannel-wg-v6 qs8Zk8eg1/RVM0O/TNKcMaPkvEsv7HVtvpDae7pSpm0= (none) [2602:814:4000:3:7c18:f6ff:feff:f872]:51821 fdc0:9e85:e99e:1::/64 1686086490 6000 1744 25
flannel-wg-v6 jUhUEL2XdIujWzegVZ3wMasDCUo7HLPYmuZT7lUmsxc= (none) [2602:814:4000:3:cc73:97ff:feed:86ee]:51821 fdc0:9e85:e99e:3::/64 1686086549 2900 5212 25
flannel-wg-v6 Ny1UczukarE44YGyuLlymHVRW6HVCqewEXK0GcVULHg= (none) [2602:814:4000:3:a81d:89ff:fe59:f2]:51821 fdc0:9e85:e99e:6::/64 1686086453 2944 4384 25
flannel-wg-v6 /s8psXkYy60uqydwl8J1HWszgr0O20NDsst7VcVzy14= (none) [2602:814:4000:3:f00f::de75]:51821 fdc0:9e85:e99e::/64 1686086476 7216 164432 25
red-lizard-14453
06/06/2023, 9:23 PMroot@k3smstr-202306:~# ip -6 a l |grep e99e
inet6 fdc0:9e85:e99e::/128 scope global
inet6 fdc0:9e85:e99e::1/64 scope global
red-lizard-14453
06/06/2023, 9:23 PM::2
? It seems like it'd be on the master node.red-lizard-14453
06/06/2023, 9:24 PMcreamy-pencil-82913
06/06/2023, 9:27 PMkubectl get service -A -o wide
to see what those service ClusterIPs are forcreamy-pencil-82913
06/06/2023, 9:27 PMcreamy-pencil-82913
06/06/2023, 9:29 PMcreamy-pencil-82913
06/06/2023, 9:30 PMred-lizard-14453
06/06/2023, 9:30 PM$ kubectl get services -o wide -A
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
default kubernetes ClusterIP fd62:a374:67c2::1 <none> 443/TCP 52m <none>
kube-system kube-dns ClusterIP 10.43.0.10 <none> 53/UDP,53/TCP,9153/TCP 51m k8s-app=kube-dns
kube-system metrics-server ClusterIP fd62:a374:67c2::bf29 <none> 443/TCP 51m k8s-app=metrics-server
flux-system notification-controller ClusterIP fd62:a374:67c2::5202 <none> 80/TCP 31m app=notification-controller
flux-system source-controller ClusterIP fd62:a374:67c2::e97a <none> 80/TCP 31m app=source-controller
flux-system webhook-receiver ClusterIP fd62:a374:67c2::1f8 <none> 80/TCP 31m app=notification-controller
⎈ june-2023/flux-system ~/
$ kubectl get nodes -o wide -A
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
tpi2n2 Ready <none> 48m v1.26.5+k3s1 2602:814:4000:3::f202 <none> Debian GNU/Linux 11 (bullseye) 6.1.14 <containerd://1.7.1-k3s1>
tpi2n4 Ready <none> 48m v1.26.5+k3s1 2602:814:4000:3::f204 <none> Debian GNU/Linux 11 (bullseye) 6.2.14 <containerd://1.7.1-k3s1>
tpi2n1 Ready <none> 48m v1.26.5+k3s1 2602:814:4000:3::f201 <none> Debian GNU/Linux 11 (bullseye) 6.1.14 <containerd://1.7.1-k3s1>
tpi2n3 Ready <none> 48m v1.26.5+k3s1 2602:814:4000:3::f203 <none> Debian GNU/Linux 11 (bullseye) 6.1.14 <containerd://1.7.1-k3s1>
k3smstr-202306 Ready control-plane,master 52m v1.26.5+k3s1 2602:814:4000:3::15 2602:814:4000:3::15 Debian GNU/Linux 11 (bullseye) 6.1.21-v8+ <containerd://1.7.1-k3s1>
creamy-pencil-82913
06/06/2023, 9:30 PMcreamy-pencil-82913
06/06/2023, 9:30 PMred-lizard-14453
06/06/2023, 9:30 PMcreamy-pencil-82913
06/06/2023, 9:31 PMred-lizard-14453
06/06/2023, 9:31 PMcreamy-pencil-82913
06/06/2023, 9:31 PMcreamy-pencil-82913
06/06/2023, 9:32 PMred-lizard-14453
06/06/2023, 9:32 PMk3s-agent-uninstall.sh
on all agents, run k3s-uninstall.sh
on the master, delete the pgsql datastore, create new database, run the k3s server install, then use k3s token create
to make a join tokenred-lizard-14453
06/06/2023, 9:32 PMcreamy-pencil-82913
06/06/2023, 9:33 PMcreamy-pencil-82913
06/06/2023, 9:33 PMk3s token create
to make join tokens for the agents. It’ll just keep the DB from erroring out when you uninstall/reinstall but don’t wipe the DBcreamy-pencil-82913
06/06/2023, 9:34 PMcreamy-pencil-82913
06/06/2023, 9:34 PMred-lizard-14453
06/06/2023, 9:35 PMred-lizard-14453
06/07/2023, 2:09 AMJun 07 03:08:42 k3smstr-202306 k3s[50185]: E0607 03:08:42.288556 50185 fieldmanager.go:210] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (/k3smstr-202306; /v1, Kind=Node) to smd typed: .status.addresses: duplicate entries for key [type=\"InternalIP\"]" VersionKind="/, Kind=" namespace="" name="k3smstr-202306"
every time we say something "should not happen" -- surprise!red-lizard-14453
06/07/2023, 11:16 AM