by Jizaboz » Sun Jan 23, 2022 2:57 pm
It's kind of a weird concept to grasp. A Docker container itself runs whatever operating system assigned to it via the "image". An image could be something like say an Nginx web server ready to go or just bare bones Alpine Linux.
So, if you have an application that requires multiple containers (RQ Workers, Nginx, ElasticSearch, Redis, python3 apps, etc) then using Kubernetes allows you to view, edit, create, and manage all of the Docker containers within the application's cluster.
Say you had a service running in one container running something like "python manage.py runserver" and while viewing your Kubernetes cluster in the Lens tool, you see that the service only starts then crashes after 1 minute due to a ram error. You then edit the "deployment template" of that service to allocate more RAM to the container via Lens, hit apply, and it auto relaunches with the required amount of RAM.
This article explains the differences better than I can though
https://www.ibm.com/cloud/blog/containers-vs-vms
It's kind of a weird concept to grasp. A Docker container itself runs whatever operating system assigned to it via the "image". An image could be something like say an Nginx web server ready to go or just bare bones Alpine Linux.
So, if you have an application that requires multiple containers (RQ Workers, Nginx, ElasticSearch, Redis, python3 apps, etc) then using Kubernetes allows you to view, edit, create, and manage all of the Docker containers within the application's cluster.
Say you had a service running in one container running something like "python manage.py runserver" and while viewing your Kubernetes cluster in the Lens tool, you see that the service only starts then crashes after 1 minute due to a ram error. You then edit the "deployment template" of that service to allocate more RAM to the container via Lens, hit apply, and it auto relaunches with the required amount of RAM.
This article explains the differences better than I can though https://www.ibm.com/cloud/blog/containers-vs-vms