Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install rke2 first server #263

Open
lultala opened this issue Nov 28, 2024 · 5 comments
Open

Cant install rke2 first server #263

lultala opened this issue Nov 28, 2024 · 5 comments

Comments

@lultala
Copy link

lultala commented Nov 28, 2024

Hello, when i try install first master i have trouble
This is my ansible output

TASK [rke2_server : Start rke2-server] ***************************************************************************************************************************************************************************************************************
ok: [server0.example.com]

TASK [rke2_server : Wait for k8s apiserver] **********************************************************************************************************************************************************************************************************
ok: [server0.example.com]

TASK [rke2_server : Wait for kubelet process to be present on host] **********************************************************************************************************************************************************************************
ok: [server0.example.com]

TASK [rke2_server : Debug kubelet process output] ****************************************************************************************************************************************************************************************************
ok: [server0.example.com] => {
    "kubelet_check.stdout": "root       58386   58293  4 205985 92648  0 22:38 ?        00:00:02 kubelet --volume-plugin-dir=/var/lib/kubelet/volumeplugins --file-check-frequency=5s --sync-frequency=30s --address=0.0.0.0 --anonymous-auth=false --authentication-token-webhook=true --authorization-mode=Webhook --cgroup-driver=systemd --client-ca-file=/var/lib/rancher/rke2/agent/client-ca.crt --cloud-provider=external --cluster-dns=10.43.0.10 --cluster-domain=cluster.local --container-runtime-endpoint=unix:///run/k3s/containerd/containerd.sock --containerd=/run/k3s/containerd/containerd.sock --eviction-hard=imagefs.available<5%,nodefs.available<5% --eviction-minimum-reclaim=imagefs.available=10%,nodefs.available=10% --fail-swap-on=false --feature-gates=CloudDualStackNodeIPs=true --healthz-bind-address=127.0.0.1 --hostname-override=k3s-master --kubeconfig=/var/lib/rancher/rke2/agent/kubelet.kubeconfig --node-ip=192.168.0.90 --node-labels=server0Label=true --pod-infra-container-image=index.docker.io/rancher/mirrored-pause:3.6 --pod-manifest-path=/var/lib/rancher/rke2/agent/pod-manifests --read-only-port=0 --resolv-conf=/run/systemd/resolve/resolv.conf --serialize-image-pulls=false --tls-cert-file=/var/lib/rancher/rke2/agent/serving-kubelet.crt --tls-private-key-file=/var/lib/rancher/rke2/agent/serving-kubelet.key"
}

TASK [rke2_server : Extract the hostname-override parameter from the kubelet process] ****************************************************************************************************************************************************************
ok: [server0.example.com]

TASK [rke2_server : Debug final fact] ****************************************************************************************************************************************************************************************************************
ok: [server0.example.com] => {
    "kubelet_hostname_override_parameter": [
        "k3s-master"
    ]
}
FAILED - RETRYING: [server0.example.com]: Wait for node to show Ready status (20 retries left).
FAILED - RETRYING: [server0.example.com]: Wait for node to show Ready status (19 retries left).
FAILED - RETRYING: [server0.example.com]: Wait for node to show Ready status (18 retries left).
FAILED - RETRYING: [server0.example.com]: Wait for node to show Ready status (17 retries left).

But whe i see journalctl i dont have some errors, just info, but when i try check node status

root@k3s-master:/etc/rancher/rke2# /var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml --server https://127.0.0.1:6443 get nodes
NAME         STATUS     ROLES                       AGE   VERSION
k3s-master   NotReady   control-plane,etcd,master   18m   v1.27.10+rke2r1
@aleiner
Copy link
Contributor

aleiner commented Dec 4, 2024

Hi @lultala - In the next week or two we're going to switch to a partial rewrite of some of the code. Can you see if this problem still exists on the 'rewrite' branch?

@Surfjoan
Copy link

Surfjoan commented Dec 9, 2024

I had a similar problem, not sure if its related though, with ubuntu. Are you using ubuntu? i had to switch off apparmor to stand up the master node

@lultala
Copy link
Author

lultala commented Dec 9, 2024

Hello! I find problem!
btw yes i use ubuntu
I create vm im proxmox by default settings - 2 cpu and 2 gb ram. and i have errors when rke started
When i up resources to 4 cpu and 4 gb ram i can without some problems started rke)

@lultala
Copy link
Author

lultala commented Dec 9, 2024

Btw with this absible i can use calico when i installed rke?

@lultala
Copy link
Author

lultala commented Dec 9, 2024

And how right disable nginx)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants