Projects:Kubernetes: verschil tussen versies

1.030 bytes toegevoegd ,  10 mrt 2019
geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 31: Regel 31:
</pre>
</pre>


Now, Docker has some problems of its own.
The <code>-it</code> flag makes this an interactive container that can run <code>bash</code>; just as easily, you can run detached containers running webservers, and use the integrated port-forwarding features to make them accessible to the outside.
 
Now, Docker has some problems of its own:
 
* You start Docker containers by accessing the Docker daemon; the daemon runs containers as root and allows you to start a container with a bind-mount of "/". Basically, having access to the Docker daemon means you have root on the system.
* When your Docker machine goes down, all containers are gone. You'll have to either restart all containers manually, or have boot-scripts that set them up, but there's no automatic restart mechanism.
* When you want to run more Docker containers than fit on one machine, there's no horizontal scaling mechanism built-in.
 
Kubernetes mainly provides a solution for these three problems, while otherwise looking very much like Docker. In fact, when you're familiar with Docker some of the commands below will also be very familiar to you.


= Concepts =
= Concepts =


In this section, I'll explain some of Kubernetes' concepts quickly, and add links if you want to know more.
In this section, I'll explain some of Kubernetes' concepts quickly, and add links if you want to know more.