Create a resource group
az group create --name <resource-group-name> --location <location>
Create a cluster for the resource group and use your ssh key
az aks create -g <resource-group-name> -n <cluster-name> --node-count 2 --ssh-key-value ~/.ssh/id_rsa.pub --network-plugin azure
Set credentials
az aks get-credentials --name <cluster-name> --resource-group <resource-group-name> --overwrite-existing
Have a container registry setup and attach to the cluster (Create your own or login to an existing one)
az acr login --name <acr-name>
Additional flags for acr login if using an existing container registry: --username <username> --password <password>
Attach credentials to your cluster/resource-group to the container registry
az aks update -n <cluster> -g <resource-group> --attach-acr <acr-name>
Build the docker image for retina make retina-image
Push to container registry:
docker push <container-registry-url>/retina:<TAG>