Create an Azure Kubernetes Cluster
-
Access the Kubernetes Services menu in the Azure portal.
-
Click +Create.
-
After the cluster is created, click on Connect.
-
Open Cloud Shell or the Azure CLI.
For Azure CLI, first you need to authenticate with your admin account with
az login
.
- Create a Service Principle account on you cluster subscription scope, with the following command:
az ad sp create-for-rbac --name bunny-1 --scopes /subscriptions/{SUBSCRIPTION ID} --role Contributor
-
The output below will be used to connect to Bunnyshell. Use these variables to connect Bunnyshell to the cluster as following:
appId
as Access Key IDpassword
as Secret Access Keytenant
as Tenant ID
{
"appId": "a2fa3a00-256c-490d-8ba7-d0b4b5c7437c",
"displayName": "bunny-1",
"password": "gq6BMG19b~ph.jcrvFd.V.xiK0rrJpPEr4",
"tenant": "a8924c17-eb1e-417d-b46a-3bbc09ce4c25"
}
- Connect to the cluster
az account set --subscription {SUBSCRIPTION_ID}
az aks get-credentials --resource-group {GROUPNAME} --name {CLUSTER_NAME}
These will generate the .kube/config
file. Copy:
clusters.[...].name
clusters.[...].cluster.server
clusters.[...].cluster.certificate-authority-data
as you will need them to connect the cluster to Bunnyshell.

Updated 5 months ago