Loading s7nsa_12_deployment...

enib_small.png S7-NSA 12_deployment — Container deployment

Until now, you have been using containers that were run locally on your workstation.
You will now entrust the orchestration of the containers you prepare on your local workstation to a remote Kubernetes cluster.

As each tutorial is independent, it is recommended that you create a separate directory on your workstation in which to save your work for this tutorial.
This will allow you to retrieve the state of your work on each tutorial you have completed.

Do not hesitate to use any external help available, including your favourite LLM, to obtain explanations.
Of course, the session supervisor is here to help in any case.

You are strongly encouraged to take notes during your observations so that you can review them before the quizzes.
{1 #deploy } Deployments and volumes
{2 #replicas } Replicas and services
{3 #custom } Simple application with a custom image
{4 #web } Web application

You have seen that, compared with podman-compose for example, Kubernetes requires a much more verbose formalism, but in return provides greater robustness when deploying containerised applications.
Similar concepts exist (storage, networking, etc.) when using containers without an orchestrator, but the cluster's orchestration makes it possible to automatically restart failed containers and to scale their number to match demand.
You adjusted these numbers manually, but Kubernetes also provides mechanisms (such as the Horizontal Pod Autoscaler) to scale them automatically based on chosen metrics.

The cluster used for this experiment is minimal: it consists of a single node with very few resources.
In practice, a real Kubernetes cluster is made up of several powerful machines (many processors, a large amount of memory) backed by a robust, shared storage solution.

The administration of a Kubernetes cluster has not been covered here.
You had access to a cluster prepared in advance for your experiments.
In a real-world context, it is also very common to use a managed Kubernetes service, where a provider operates the cluster for you.

Make sure you review your understanding of what has been covered so far so that you can approach the quizzes with confidence.
Some examples of possible questions