Add the container registry certs to AKS nodes

AKS-User 31 Reputation points
2022-03-18T10:22:33.647+00:00

I have the AKS cluster and the container registry. I'm unable to pull the images from the kubernetes manifests. This is due to the certificates unavailability on AKS nodes. How to add the certificates to the AKS nodes and also how to update the /etc/hosts entries?

AKS Version: v1.21.7
KERNEL-VERSION: 5.4.0-1067-azure
CONTAINER-RUNTIME: containerd://1.4.9+azure

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,448 questions
{count} votes

Accepted answer
  1. Prrudram-MSFT 28,201 Reputation points Moderator
    2022-03-21T10:52:36.057+00:00

    Hello @AKS-User ,

    I understand you are using Harbor registry https://github.com/goharbor/harbor
    After a thorough research, I find daemonsets to be the way here because we don't provide OOB solutions for 3rd party CRs (except for docker hub I think).
    This is a Kubernetes DaemonSet definition that will install a custom certificate on the nodes and restart containerd. This is useful if your private registry is protected using a self-signed certificate. Not tested in production. · GitHub
    Example for hosts file: KQ - How to update worker nodes /etc/hosts file in GKE (kubernetesquestions.com)

    Let me know if you have any queries around this, if this doesn't work, please respond back on this answer by adding a new comment.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.