Install azure-keyvault-secrets-provider addon in AKS using a custom repo

I’m trying to install Secrets Store CSI Driver using aks add-ons in my private cluster. This cluster is deployed under my company subscription, therefore, there are some network limitations when it comes to pull images from official resources.

We use Harbor to pull images from official repos and we already configured the registry to pull from mcr.microsoft.com, the thing is when we try to install the add-on using the recommended method by Microsoft by running in the CLI

az aks enable-addons --addons azure-keyvault-secrets-provider --name myAKSCluster --resource-group myResourceGroup

the image, obviously, is trying to be pull from mcr.microsoft.com, and I want to use a custom URL from harbor harbor.mycompany.com .

How can I set the repo from which the image should be pulled?

I already tried editing the daemonset, but for some reason the image always back to mcr.microsoft.com.

1

The reason why even after editing the Daemon Set, the image reverts to mcr.microsoft.com is due to AKS’s add-on management. When AKS manages an add-on like the Secrets Store CSI Driver, it can automatically revert any manual changes made to the underlying resources, including Daemon Set, during updates or reconciliation processes.

As a workaround, disable the AKS-managed add-on entirely and install the Secrets Store CSI Driver manually using Helm, where you can control the image source.

Example-

az aks disable-addons --addons azure-keyvault-secrets-provider --name myAKSCluster --resource-group myResourceGroup

Now AKS won’t automatically revert the Daemon Set.

Now you can manually install the Secrets Store CSI Driver Using Helm

helm repo add secrets-store-csi-driver https://azure.github.io/secrets-store-csi-driver-provider-azure/charts
helm repo update

Create a values.yaml file where you specify the custom Harbor registry for both the CSI Driver and the Azure provider

You can take reference from here .
roughly something like this-

image:
  registry: harbor.mycompany.com
  repository: azure/secrets-store-csi
  tag: latest  # Specify the correct tag

providerAzure:
  image:
    registry: harbor.mycompany.com
    repository: azure/provider-azure
    tag: latest  # Specify the correct tag

linux:
  resources: {}
  logLevel: 2

Install the Secrets Store CSI Driver manually using Helm

helm install csi-secrets-store secrets-store-csi-driver/csi-secrets-store-provider-azure 
  --namespace kube-system 
  --values values.yaml

Once done, verify that the DaemonSet is using images from harbor.mycompany.com

kubectl get daemonset csi-secrets-store -n kube-system -o yaml | grep "image"

Therefore, by disabling the AKS add-on and manually installing the Secrets Store CSI Driver using Helm, you can have full control over Daemon Set configuration thereby preventing AKS from reverting your changes.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật