Microsoft Azure

  1. Set your resource group, cluster name, and image repository name. For example:

     export RESOURCE_GROUP="cover-group"
     export CLUSTER_NAME="cover-demo"
     export REPO_NAME="cover-repo"
    
  2. Create a service principal. This is required to allow the application to download the containers from the private repository. NOTE: You will need the id for the service principal from the output later in the process.

     az ad sp create-for-rbac --skip-assignment
    
  3. Create a resource group to deploy the cluster into:

     az group create --name ${RESOURCE_GROUP} --location uksouth
    
  4. Create a private container repository for the images:

     az acr create --resource-group ${RESOURCE_GROUP} --name ${REPO_NAME} --sku Basic
    
  5. Login (locally) to the container repository:

     az acr login --name ${REPO_NAME}
    
  6. Get the name of the repository (to change the tags):

     az acr list --resource-group ${RESOURCE_GROUP} --query "[].{acrLoginServer:loginServer}" --output table
    
  7. Create the cluster:

     az aks create \
     --resource-group ${RESOURCE_GROUP} \
     --name ${CLUSTER_NAME} \
     --node-count 10 \
     --service-principal 2be2fb0b-cdf4-4d5a-9d4a-3f671d2b33a6 \
     --client-secret 519a1242-9bfd-462b-8dd7-6b1410db9554 \
     --generate-ssh-keys
    
  8. Allow the cluster to access repository to get the images:

     az role assignment create --assignee 2be2fb0b-cdf4-4d5a-9d4a-3f671d2b33a6 --role Reader
    

Now return to the main cloud deployment page and follow the instructions to deploy Diffblue Cover to the cluster.

results matching ""

    No results matching ""