Deckhouse Kubernetes Platform in Microsoft Azure
Only regions where Availability Zones
are available are supported.
Before starting the installation, ensure you have the cloud provider quotas required to deploy your cluster.
The cloud-init
package must be installed on the VMs.
After the virtual machine is started, the following services associated with this package must be started:
cloud-config.service
;cloud-final.service
;cloud-init.service
.
To rule the Microsoft Azure cloud, you need an account and at least a single Subscription connected to id.
You have to create a service account with Microsoft Azure so that Deckhouse Kubernetes Platform can manage cloud resources. The detailed instructions for creating a service account with Microsoft Azure are available in the documentation. Below, we will provide a brief overview of the necessary actions (run them on the personal computer).
Install the Azure CLI and perform a login
.
Export the environment variable by substituting the subscription ID instead of the my-subscription-id
:
export SUBSCRIPTION_ID=$(az login | jq -r '.[0].id')
Create a service account:
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/$SUBSCRIPTION_ID" --name "account_name"
At this step, a service account will be created, with a secret (used in the clientSecret parameter of the AzureClusterConfiguration
resource) validity period of one year without automatic renewal. Refer to the official documentation to create a service account with a longer secret expiration date.