Bash
In this section, I will show how to deploy Kubernetes 1.21 with Calico CNI plugin.
Please ensure that you have a sufficient number of nodes prepared and have already installed Ubuntu Server 20.04.
The same deployment method is applicable at least until version 1.23 and has been verified to be upgradable to the current latest version 1.27 in subsequent articles.
The model holds a specific deployment. It is a good idea to create a new one specifically for each deployment.
Bashjuju add-model k8s-lab
Remember that you can have multiple models on each controller, so you can deploy multiple Kubernetes clusters, or other applications.
This section will cover how to deploy a Controller in a bare-metal environment.
For The official documentation is already well-prepared for public cloud environments. If you are not deploying in a bare-metal environment, Please refer to https://ubuntu.com/kubernetes/docs for more information.
Juju is a tool that helps automate the deployment, configuration, and management of applications in cloud environments. It makes it easier to manage multiple applications and their interactions within the cloud.
Bashsudo snap install juju --channel=2.9 --classic