I am facing some kind of permission issue here. I am able to read a file with cat, make changes to it using
nano but for some reason, jq is having permission issues. Here is what I am facing:
Solution
sudo snap remove jq
sudo apt install jq
Never install command line tools with snap without --classic. This error is indented behavior.
$$ RKE2 Debug:
https://gist.github.com/superseb/3b78f47989e0dbc1295486c186e944bf (Commands)
https://forum.uipath.com/t/rke2-stuck-in-activating/570680
$$ Networking:
https://www.rigacci.org/wiki/lib/exe/fetch.php/doc/appunti/linux/sa/iptables/conntrack.html
For systems with more than 4GB of memory it will be 65536 buckets. So in 8 GB RAM system the default value is 65536*2 (4GB*2=8GB)=131072
In a 8Gb node:Max cat /proc/meminfo
MemTotal: 8019616 kBcat /proc/sys/net/netfilter/nf_conntrack_max
131072What is the current value:cat /proc/sys/net/netfilter/nf_conntrack_count
581rke2-service ENV file:
/usr/local/lib/systemd/system/rke2-server.env
k3s-service ENV file:
/etc/systemd/system/k3s.service.env
For example, if the DNS is not pointing to right file then you can update this file and restart the agent/server.
If you're using k3s _or_ rke2, add
```shell
K3S_RESOLV_CONF=/etc/resolv.conf
RKE2_RESOLV_CONF=/etc/resolv.conf
```
to k3s/rke2 env files on all nodes, then restart the k3s/rke2 server/agent service.
Note: If you're not using k3s, check the [Kubernetes DNS Resolution Known Issues](https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues) to see how to set kubelet's `--resolv-conf` flag to point to the correct `resolv.conf`.
https://github.com/longhorn/website/pull/404/files (refer this)
## How to see debug information of the nslookup
~$ nslookup -debug google.com
Server: 127.0.0.53
Address: 127.0.0.53#53
------------
QUESTIONS:
google.com, type = A, class = IN
ANSWERS:
-> google.com
internet address = 142.250.77.110
ttl = 47
AUTHORITY RECORDS:
ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name: google.com
Address: 142.250.77.110
------------
QUESTIONS:
google.com, type = AAAA, class = IN
ANSWERS:
-> google.com
has AAAA address 2404:6800:4007:82a::200e
ttl = 111
AUTHORITY RECORDS:
ADDITIONAL RECORDS:
------------
Name: google.com
Address: 2404:6800:4007:82a::200e
$$ Node local DNS -->https://povilasv.me/kubernetes-node-local-dns-cache/
$$ https://www.geeksforgeeks.org/how-to-compress-and-extract-files-using-the-tar-command-on-linux/
| . | ||
| 6. If you're not using k3s, check the [Kubernetes DNS Resolution Known Issues](https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues) to see how to set kubelet's `--resolv-conf` flag to point to the correct `resolv.conf`. |