Harbor Kullanımı
Kurumunuz Harbor registry kullanıyorsa, imaj path yapısı ve sertifika gereksinimleri kurum yapılandırmasına göre değişir. Genel akış Nexus ile benzerdir; registry host ve proje path'ini kurumunuzdan almanız gerekir.
<HARBOR_HOST> ve <HARBOR_PROJECT> placeholder'larını kurumunuzun Harbor adresi ve proje adıyla değiştirin.
Containerd Yapılandırması
Yapılandırmayı cluster'daki tüm worker node'larda uygulayın.
sudo vi /etc/containerd/config.toml
Harbor host için registry mirror tanımı ekleyin:
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."<HARBOR_HOST>"]
endpoint = ["https://<HARBOR_HOST>"]
Örnek:
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."harbor.kurum.gov.tr"]
endpoint = ["https://harbor.kurum.gov.tr"]
sudo systemctl restart containerd
sudo systemctl status containerd
Kurum sertifikası güvenilir değilse -skip-verify gerekebilir:
sudo ctr --namespace k8s.io images pull <HARBOR_HOST>/<HARBOR_PROJECT>/apinizercloud/apimanager:<APINIZER_VERSION> --skip-verify
Örnek:
sudo ctr --namespace k8s.io images pull harbor.kurum.gov.tr/apinizer/apinizercloud/apimanager:2025.07.6 --skip-verify
Kubernetes Deployment Yapılandırması
image: <HARBOR_HOST>/<HARBOR_PROJECT>/apinizercloud/cache:<APINIZER_VERSION>
Örnek:
image: harbor.kurum.gov.tr/apinizer/apinizercloud/cache:2025.07.6
Docker Runtime Kullanıyorsanız
- Docker daemon.json
sudo vi /etc/docker/daemon.json
Harbor HTTPS kullanıyorsa ve kurumsal CA sertifikası gerekiyorsa sertifikayı sisteme ekleyin. HTTP veya self-signed ortamlarda insecure-registries kullanılabilir:
{
"insecure-registries": ["<HARBOR_HOST>"]
}
sudo systemctl daemon-reload
sudo systemctl restart docker
x509: certificate is not valid hatası alırsanız Kubernetes, Docker ve Containerd Sorun Giderme sayfasındaki ilgili bölüme bakın.
İlgili Dokümanlar
- Nexus Kullanımı — benzer kurumsal proxy senaryosu
- Container İmajları ve Registry