Khader Syed

Using Azure Container Registry with Kubernetes

Fri Oct 20 2017


Instead of specifying this directly in your configuration, we’ll use the concept of k8s secrets. You decouple the k8s object from the registry configuration by just referencing the secret by it’s name. But first, let’s create a new k8s secret.

$ kubectl create secret docker-registry <SECRET_NAME> --docker-server <REGISTRY_NAME> --docker-email <YOUR_MAIL> --docker-username=<SERVICE_PRINCIPAL_ID> --docker-password <YOUR_PASSWORD>