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

Issues while connecting to nginx deployment in k0s cluster #10

Open
odidev opened this issue Nov 30, 2022 · 1 comment
Open

Issues while connecting to nginx deployment in k0s cluster #10

odidev opened this issue Nov 30, 2022 · 1 comment

Comments

@odidev
Copy link

odidev commented Nov 30, 2022

Hi team,

I am following this document < https://docs.k0sproject.io/v1.23.6+k0s.2/examples/ansible-playbook/ > to create k0s cluster using ansible, on the Linux/AMD64 AWS bare metal instance.

It seems like the k0s cluster got created successfully and all the worker nodes are in ready state:

NAME    STATUS   ROLES    AGE   VERSION       INTERNAL-IP      EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME 
k0s-4   Ready    <none>   10m   v1.22.4+k0s   10.197.110.121   <none>        Ubuntu 22.04.1 LTS   5.15.0-53-generic   containerd://1.5.8 
k0s-5   Ready    <none>   10m   v1.22.4+k0s   10.197.110.251   <none>        Ubuntu 22.04.1 LTS   5.15.0-53-generic   containerd://1.5.8 
k0s-6   Ready    <none>   10m   v1.22.4+k0s   10.197.110.142   <none>        Ubuntu 22.04.1 LTS   5.15.0-53-generic   containerd://1.5.8 
k0s-7   Ready    <none>   10m   v1.22.4+k0s   10.197.110.104   <none>        Ubuntu 22.04.1 LTS   5.15.0-53-generic   containerd://1.5.8 

Then I created nginx deployment with 5 replicas and that seems to work as well:

NAME    READY   UP-TO-DATE   AVAILABLE   AGE 
nginx   5/5     5            5           64s 

I exposed nginx port 80 to 8100 as mentioned in the docs:

$ kubectl expose deployment nginx --target-port=80 --port=8100 
service/nginx exposed 

But I get no response from nginx deployment when I wget it from busybox.

$ kubectl run hello-k0s --image=quay.io/prometheus/busybox --rm -it --restart=Never --command -- wget -qO- nginx:8100 

pod "hello-k0s" deleted 
Error from server: Get "https://10.197.110.121:10250/containerLogs/default/hello-k0s/hello-k0s": dial timeout, backstop 

I even mentioned port 80 (--port=80) while creating nginx deployment using kubectl, but that didn’t help.
Instead of busybox, I tried using ubuntu image, but the results are the same.

Can you please provide me with some pointers here?

@odidev
Copy link
Author

odidev commented Dec 16, 2022

Hi Team, can you please provide me with some pointers here?

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

1 participant