DEV Community

Cover image for Kubernetes quick tutorial

Kubernetes quick tutorial

Francesco Ciulla on April 18, 2023

πŸ‘‹ Introduction Let's make the simplest but understandable Kubernetes example ever. Video version: We will create our first example...
Collapse
 
shashwattiwari profile image
Shashwat Tiwari

Hi @francescoxx thank you writing a detailed post on kubernetes for beginners like me. I'm facing some issues with few steps mentioned in the article.

  1. can you please explain the output of docker compose build?
  2. and visit localhost:80 in your browser step doesn't work for me. The browser shows This page isn’t working. localhost didn’t send any data. ERR_EMPTY_RESPONSE. Please help here.
Collapse
 
francescoxx profile image
Francesco Ciulla

docker compose build builds all the images that have a build key in the docker compose

I think you might have that port alrady in use. try to change the 80 with another one in all the files and try again

Collapse
 
tythos profile image
Brian Kirkpatrick

Probably goes without saying, but the above also works seamlessly with Rancher Desktop for your local Docker & K8s provider.

Collapse
 
tythos profile image
Brian Kirkpatrick

Actually, my mistake--you can't use a local LoadBalancer to expose your service from Rancher Desktop; instead you may want to define an Ingress resource.

Collapse
 
francescoxx profile image
Francesco Ciulla

thanks for coming again to clarify this

Collapse
 
francescoxx profile image
Francesco Ciulla

ye probably

Collapse
 
drsimplegraffiti profile image
Abayomi Ogunnusi

Thanks for this post, I got in the external ip column, I used the following command

❯ minikube tunnel --cleanup

Collapse
 
sumitsaurabh927 profile image
Sumit Saurabh

Excellent write-up, Fran!

Collapse
 
francescoxx profile image
Francesco Ciulla

thanks Sumit

Collapse
 
rafaelrferreira profile image
Rafael R. Ferreira πŸ•ΉοΈπŸ•

Excellent tutorial! Trying kubernetes on 3,2,1...

Collapse
 
francescoxx profile image
Francesco Ciulla

thanks Rafael!