big-jordan-45387
04/28/2023, 10:07 AMsystemctl start rancher-system-agent.service && systemctl start rke2-agent.service && systemctl start rke2-server.service
but rke2-agent
fails to start
journalctl says:
Apr 28 12:03:30 nid003204 systemd[1]: rke2-agent.service: Failed with result 'exit-code'.
Apr 28 12:03:30 nid003204 systemd[1]: Failed to start Rancher Kubernetes Engine v2 (agent).
Apr 28 12:03:36 nid003204 systemd[1]: rke2-agent.service: Scheduled restart job, restart counter is at 42.
Apr 28 12:03:36 nid003204 systemd[1]: Stopped Rancher Kubernetes Engine v2 (agent).
Apr 28 12:03:36 nid003204 systemd[1]: Starting Rancher Kubernetes Engine v2 (agent)...
Apr 28 12:03:36 nid003204 sh[134363]: + /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service
Apr 28 12:03:36 nid003204 sh[134364]: Failed to get unit file state for nm-cloud-setup.service: No such file or directory
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --agent-token found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --cni found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --disable found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --disable-kube-proxy found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --etcd-expose-metrics found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --etcd-snapshot-retention found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --etcd-snapshot-schedule-cron found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --kube-controller-manager-arg found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --kube-controller-manager-arg found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --kube-scheduler-arg found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="Unknown flag --kube-scheduler-arg found in config.yaml, skipping\n"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=warning msg="not running in CIS mode"
Apr 28 12:03:36 nid003204 rke2[134367]: time="2023-04-28T12:03:36+02:00" level=fatal msg="--server is required"
Apr 28 12:03:36 nid003204 systemd[1]: rke2-agent.service: Main process exited, code=exited, status=1/FAILURE
Apr 28 12:03:36 nid003204 systemd[1]: rke2-agent.service: Failed with result 'exit-code'.
Apr 28 12:03:36 nid003204 systemd[1]: Failed to start Rancher Kubernetes Engine v2 (agent).
Any idea?wonderful-elephant-56815
04/28/2023, 12:08 PMtime="2023-04-28T11:14:09Z" level=info msg="Requesting kubelet certificate regeneration"
and is just stuck there.most-waiter-84057
04/28/2023, 3:44 PMmost-waiter-84057
04/28/2023, 3:45 PMdamp-dusk-21502
04/28/2023, 3:58 PMBad Gateway
. And I am out of ideas.
I have a fresh installation of rancher-desktop and I can see traefik
running in the kube-system
namespace.
I have applied an http demo deployment (comes from ingress-nginx, but the deployment should be agnostic) and the ingress file below:
kubectl apply -f <https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/http-svc.yaml>
---
apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
kind: Ingress
metadata:
name: demo-ingress
spec:
rules:
- http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: http-svc
port:
number: 80
---
I end up with this ingress:
kubectl get <http://ingresses.networking.k8s.io|ingresses.networking.k8s.io>
NAME CLASS HOSTS ADDRESS PORTS AGE
demo-ingress traefik * 192.168.130.178 80 24m
However, all requests to localhost or 192.168.130.178 return bad gateway:
# same with <http://192.168.130.178>
curl <http://127.0.0.1:80>
Bad Gateway
acceptable-library-56665
04/29/2023, 8:45 PMfreezing-hairdresser-79403
04/30/2023, 11:28 AMpolite-action-59010
04/30/2023, 4:28 PMbusy-flag-55906
05/01/2023, 8:03 AMsilly-jelly-27487
05/01/2023, 8:42 AMflaky-continent-36535
05/01/2023, 12:10 PMglobalRoleBinds
creates a clusterRole
in each one of the downstream clusters?flaky-continent-36535
05/01/2023, 12:15 PMglobalClusterRole
which will be assigned to Okta group, but lookds like it dosn't work because the clusterRole
is not being created in the downstrewam clusterfuture-restaurant-54259
05/01/2023, 12:33 PMquaint-candle-18606
05/01/2023, 2:20 PMminiature-ambulance-98143
05/01/2023, 5:00 PMalert-eye-15211
05/01/2023, 6:01 PMalert-eye-15211
05/01/2023, 6:02 PMbig-oxygen-89163
05/01/2023, 7:18 PMbig-oxygen-89163
05/01/2023, 7:37 PMrefined-yacht-30754
05/02/2023, 2:36 AMstraight-fountain-2279
05/02/2023, 8:41 AMbetter-ocean-90584
05/02/2023, 9:54 AMfreezing-hairdresser-79403
05/02/2023, 10:37 AMeager-musician-13131
05/02/2023, 11:23 AMmicroscopic-knife-52274
05/02/2023, 12:55 PMkubelet-arg:
- container-log-max-files=3
- container-log-max-size=2Mi
I found this issue (https://github.com/rancher/rke2/discussions/3002#discussioncomment-2862822) but it seems this only works in the upstrean-cluster.
Thanks and regardsalert-traffic-48134
05/02/2023, 1:58 PMkubectl
is showing a Warning at each running command :
kubectl get nodes
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
NAME STATUS ROLES AGE VERSION
...
...
If anyone has a workaround ? 😉worried-fireman-66348
05/02/2023, 3:05 PMrefined-optician-60483
05/02/2023, 3:20 PMdamp-umbrella-95144
05/02/2023, 3:36 PMyum remove -y k3s-selinux
step. Since there is no internet this step times out after a long time(5+mins I guess).
Shldn't we handle this case specifically for the airgap uninstallation?
Tried searching, but cldn't find any issue in reference to this.
Would appreciate any help on this.handsome-fireman-34425
05/02/2023, 3:41 PM