Switch registry hostname to Contour ingress (harbor.192.168.1.7.nip.io)

demo-go-app's Deployment failed to pull: "dial tcp: lookup
harbor-core.harbor.svc.cluster.local on 127.0.0.53:53: server
misbehaving". docker push worked from the Jenkins build pod because
it has pod-network DNS (CoreDNS); pulling for a real Deployment
happens via containerd on the node itself, using the node's host-level
resolver, which has no route to *.svc.cluster.local at all. Switches
buildDocker.groovy's push target and dind-pod.yaml's
--insecure-registry flag to the Contour ingress hostname instead,
which resolves via normal public DNS (nip.io) from both pods and the
host.
This commit is contained in:
Mukul Sharma
2026-09-02 23:54:11 +05:30
parent dad5d9f9f2
commit 3ffa2d8444
2 changed files with 19 additions and 10 deletions
+10 -9
View File
@@ -15,16 +15,17 @@ spec:
image: docker:27-dind
securityContext:
privileged: true
# Harbor's harbor-core Service serves plain HTTP internally (TLS is
# disabled cluster-wide by design — see claude.md's "everything is
# plain HTTP" note). Docker still defaults to attempting HTTPS
# against any bare registry hostname regardless of whether the
# network path actually involves TLS anywhere — that default isn't
# about routing through Contour/Ingress, it's just the client's own
# convention. Without this flag, `docker push` hangs doing a TLS
# handshake against a server that's only ever spoken HTTP.
# Harbor's ingress serves plain HTTP too (TLS disabled cluster-wide
# by design — see claude.md's "everything is plain HTTP" note).
# Docker defaults to attempting HTTPS against any bare registry
# hostname regardless of network path, so this is needed
# regardless of which hostname is used — was previously
# harbor-core.harbor.svc.cluster.local (cluster-internal Service
# DNS, works from this pod but not from the node's own containerd
# when pulling for a real Deployment); switched to the Contour
# ingress hostname so push and pull can share one reference.
args:
- "--insecure-registry=harbor-core.harbor.svc.cluster.local"
- "--insecure-registry=harbor.192.168.1.7.nip.io"
env:
- name: DOCKER_TLS_CERTDIR
value: ""