Azure Service Principal

Azure Service Principal is used to create the image pull secrets and download images from ACR. When creating the Service Principal
  • Set the expiration to never
  • Assign the ACR pull access role
For information on commands to create the Azure Service Principal refer to Microsoft's online manual - Azure Container Registry authentication with service principals.
A summary of steps are as follows:
  • To derive the service principal id and the password execute the helper script provided by AppViewX. To use this script follow the steps below.
    1. Download the artifact Managed-Kubernetes_helper_scripts.tar.gz to the bastion host and extract using the command:

      tar -xf Managed-Kubernetes_helper_scripts.tar.gz
    2. Navigate to the extracted directory mk8s_helper_scripts.

      cd mk8s_helper_scripts
    3. Edit the file acr_reg_config.sh and replace ACR_NAME with the actual value.

    4. Execute the acr_reg_config.sh file.

      bash acr_reg_config.sh
Note: After the script execution, capture the outputs as they are required in the global utility config.