breezy-autumn-81048
03/29/2023, 10:21 AMcurl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: <https://curl.haxx.se/docs/sslcerts.html>
when pod is trying to access my GitHub Enterprise Server, is it enough to add a self-signed certificate to /var/lib/rancher/k3s/server/tls
? Only the server cert should be added or the rootCA and intermediate certs as well?
Thanks in advance,careful-piano-35019
03/29/2023, 1:07 PMmodern-island-11920
03/29/2023, 3:00 PMjolly-waitress-71272
03/29/2023, 9:22 PMclever-salesmen-71802
03/30/2023, 12:37 AMsudo curl -sfL <https://get.k3s.io> | INSTALL_K3S_VERSION=v1.24.11+k3s1 INSTALL_K3S_EXEC="--write-kubeconfig-mode "0644" --kubelet-arg=config=/etc/rancher/k3s/kubelet-config.yaml --disable=traefik --cluster-cidr=172.16.0.0/16 --flannel-backend=none --disable-network-policy --datastore-endpoint=etcd --default-local-storage-path=/mnt/storage" sh -
However I didn't have the kubelet config file in place /etc/rancher/k3s/kubelet-config.yaml
at that moment making the k3s not starting properly
...
[INFO] systemd: Creating service file /etc/systemd/system/k3s.service
[INFO] systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO] systemd: Starting k3s
Job for k3s.service failed because the control process exited with error code.
See "systemctl status k3s.service" and "journalctl -xeu k3s.service" for details.
Once the file was in place, k3s started but now I see two nodes:
kubectl get no
NAME STATUS ROLES AGE VERSION
old-desired Ready control-plane,etcd,master 323d v1.23.6+k3s1
new-undesired NotReady control-plane,etcd,master 118s v1.24.11+k3s1
Is there a way to remove that undesired
node without affecting the desired
node?enough-carpet-20915
03/30/2023, 9:23 AMlocal-path
as a default storage class? I try removing the default but k3s keeps putting it back.average-garden-73736
03/30/2023, 5:55 PM$ kubectl describe nodes
Warning ContainerGCFailed 51s (x621 over 10h) kubelet rpc error: code = ResourceExhausted desc = grpc: trying to send message larger than max (16782381 vs. 16777216)
And somehow, my node automatically gets placed into a NotReady
state. Has anyone seen this before?quick-dentist-45681
03/30/2023, 8:29 PM/var/lib/rancher/k3s/server/manifests
, but I'm only getting the last defined secret.
In the manifest I use generateName
to set the name of the secrets, so name
is not set. That seems to result in k3s only creating the last one defined in the file.
If I explicitly set name
, all secrets are created.
I have a feeling this worked before in an older cluster of mine (which has since been scrapped, so can't confirm), has there been any changes with regards to this in the last couple releases? (I'd say after 1.23 maybe?)clever-salesmen-71802
03/31/2023, 5:12 AMcluster-cidr
of an existing cluster? I have a cluster created with --cluster-cidr=192.168.0.0/16 but due to some conflicts I want it to be --cluster-cidr=172.16.0.0/16 but that makes the k3s service to restart frequently due to a panic:
Mar 31 05:04:34 my-node k3s[1059813]: panic: F0331 05:04:34.864500 1059813 controllermanager.go:222] error starting controllers: failed to mark cidr[192.168.0.0/24] at idx [0] as occupied for node: my-node: cidr 192.168.0.0/24 is out the range of cluster cidr 172.16.0.0/16
ancient-tomato-94095
03/31/2023, 12:29 PMapiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
log:
filePath: "/var/log/traefik/traefik.log"
level: DEBUGancient-tomato-94095
03/31/2023, 12:35 PMbreezy-autumn-81048
03/31/2023, 2:37 PMINSTALL_K3S_SKIP_DOWNLOAD=true K3S_TOKEN=SECRET INSTALL_K3S_EXEC="--resolv-conf=/etc/rancher/k3s/resolv.conf --selinux" sh install.sh agent --server <https://node1.example.net:6443>
and it seems that it didn't configure it as an agent node, but as a master:
k3s kubectl get nodes
NAME STATUS ROLES AGE VERSION
<http://node4.example.net|node4.example.net> Ready control-plane,master 2m20s v1.26.2+k3s1
It should be added to the node1 and the role should be an "agent"
On the node1 (master):
k3s kubectl get nodes
NAME STATUS ROLES AGE VERSION
<http://node1.example.net|node1.example.net> Ready control-plane,etcd,master 3d4h v1.26.2+k3s1
on the rest 2 master nodes I run:
INSTALL_K3S_SKIP_DOWNLOAD=true K3S_TOKEN=SECRET INSTALL_K3S_EXEC="--resolv-conf=/etc/rancher/k3s/resolv.conf --selinux" sh install.sh server --server <https://node1.example.net:6443>
But again, these nodes were not added to the main node1.
Is it a bug?modern-island-11920
03/31/2023, 7:58 PMquiet-memory-19288
03/31/2023, 11:15 PMpolite-piano-74233
04/01/2023, 3:08 PMpolite-piano-74233
04/01/2023, 3:09 PMnutritious-oxygen-89191
04/04/2023, 6:47 AMhad the UDP ports blocked
but I opened all the ports mentioned [here](https://ranchermanager.docs.rancher.com/v2.5/getting-started/installation-and-upgrade/installation-requirements/port-requirements#downstr[…]er-nodes)
=> Start DNS resolve test
E0404 08:32:58.066969 105106 memcache.go:287] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:32:58.153873 105106 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:32:58.181868 105106 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:32:58.202611 105106 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:32:58.377407 105191 memcache.go:287] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:32:58.439348 105191 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:32:58.459940 105191 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
command terminated with exit code 1
<http://XXX.XXX.XXX.XXX|XXX.XXX.XXX.XXX> cannot resolve <http://www.google.com|www.google.com>
E0404 08:33:58.886092 107876 memcache.go:287] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:33:58.941918 107876 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:33:58.959819 107876 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:33:59.759025 107929 memcache.go:287] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:33:59.839680 107929 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0404 08:33:59.857799 107929 memcache.go:121] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
command terminated with exit code 1
YYY.YYY.YYY.YYY cannot resolve <http://www.google.com|www.google.com>
=> End DNS resolve test
rich-alarm-72570
04/04/2023, 11:06 AMfancy-insurance-98888
04/07/2023, 5:15 AMabundant-camera-87627
04/07/2023, 11:11 AMinstall.sh
recently? Since today when I try to execute it with INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_EXEC="server --cluster-init --token <token> --tls-san <ipaddress> --disable local-storage --config /etc/rancher/k3s/config.yaml" ./install.sh
it just exits without error messagecreamy-action-76081
04/10/2023, 2:30 AMglamorous-accountant-39131
04/10/2023, 9:21 AMkubectl forward-port -n kube-system service/traefik 9000:9000
but I cannot access to traefik dashboard, from localhost.
I miss something ?glamorous-accountant-39131
04/10/2023, 11:27 AMbored-farmer-36655
04/10/2023, 11:52 AMkubectl get pods -n kube-system -o
custom-columns=:metadata.name | grep '^traefik-'
9000:9000`square-engine-61315
04/10/2023, 6:23 PMcareful-oil-65588
04/11/2023, 4:51 AMcontrol-plane
node, when I run sudo k3s kubectl config view
I get the following kube config:
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: DATA+OMITTED
server: <https://127.0.0.1:6443>
name: default
contexts:
- context:
cluster: default
user: default
name: default
current-context: default
kind: Config
preferences: {}
users:
- name: default
user:
client-certificate-data: DATA+OMITTED
client-key-data: DATA+OMITTED
Above configuration won't allow me to connect from a remote machine.
Is there any way that I can get a kube config setting that allow me to do kubectl
from a remote machine (means it include the user keys) ?square-engine-61315
04/11/2023, 7:48 AMsystem-upgrade-controller
performs an update? I need some kind of audit trail + notification system.jolly-waitress-71272
04/11/2023, 10:52 PMKubernetes apiserver must have --allow-privileged=true in order to run KubeVirt's privileged DaemonSet.
How would I verify that on k3s? Is that just stuffed into the unit file like normal k3s config flags?brash-helicopter-95726
04/12/2023, 6:29 PMhostname: k3os-master-node
k3os:
data_sources: []
token: ...
k3s_args:
- server
- "--write-kubeconfig-mode"
- "644"
modules:
- kvm
- rbd
- openvswitch
sysctl:
kernel.printk: "4 4 1 7"
net.ipv4.ip_forward: 1
ntp_servers:
- <http://0.us.pool.ntp.org|0.us.pool.ntp.org>
- <http://1.us.pool.ntp.org|1.us.pool.ntp.org>
kubernetes_url: <https://existing-master:6443>
dns_nameservers:
- 8.8.8.8
- 8.8.4.4
ntp_servers:
- <http://0.pool.ntp.org|0.pool.ntp.org>
- <http://1.pool.ntp.org|1.pool.ntp.org>
ssh_authorized_keys:
- ssh-rsa ....
Is it actually possible to add a new master agent to an existing cluster like this?ancient-tomato-94095
04/13/2023, 7:21 PM