Deploy Krustlet on Azure using Azure Deployment Manager
APACHE-2.0 License
This template deploys and sets up a customized Krustlet instance on an Ubuntu Virtual Machine. It also deploys a Virtual Network and a Kubernetes cluster (via AKS).
You can set common Krustlet server properties as parameters at deployment time.
Once the deployment is successful, you can connect to the Kubernetes cluster using az aks get-credentials
.
Prior to deploying AKS using this ARM template, a Service Principal needs to exist.
The following Azure CLI command can be used to create a Service Principal:
$ az ad sp create-for-rbac --name ServicePrincipalName --skip-assignment
The output for a service principal with password authentication includes the password key. Make sure you copy this value - it can't be retrieved. If you forget the password, reset the service principal credentials.
The ID and password appears in the output of az ad sp create-for-rbac
and are used in the ARM template's parameters. Make sure to record their values for later use.
You will also need to generate an SSH key. This will be used to SSH into the machines for debugging purposes... Or if you're just curious and want to see how the sausage is made.
Copy the content of your public key and paste it into the "SSH Public Key" parameter.