Creating a Microsoft Azure Kubernetes cluster

1. Access the Kubernetes Services menu in the Azure portal.

2. Click +Create.

3. After the cluster is created, click on Connect.

4. Open Cloud Shell or the Azure CLI.

circle-info

For Azure CLI, first authenticate with your admin account withaz login.

5. 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

6. This output will be used to connect to Bunnyshell

{
  "appId": "a2fa3a00-256c-490d-8ba7-d0b4b5c7437c",
  "displayName": "bunny-1",
  "password": "gq6BMG19b~ph.jcrvFd.V.xiK0rrJpPEr4",
  "tenant": "a8924c17-eb1e-417d-b46a-3bbc09ce4c25"
}

Use these variables to connect Bunnyshell to the cluster as following:

  • appId as Access Key ID

  • password as Secret Access Key

  • tenant as Tenant ID

7. Connect to the cluster

8. Generate the .kube/config file, and copy the certificate-authority-data variable.

Last updated

Was this helpful?