Closed laikw closed 5 years ago
This may be a bug in serverless install or in PKS. Do you know?
I do not know but my guess would be this is a bug in serverless JX since it is the one pushing the image to the docker registry.
On 15 Aug 2019, at 6:16 AM, Pete Muir notifications@github.com wrote:
This may be a bug in serverless install or in PKS. Do you know?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jenkins-x/jx/issues/5073?email_source=notifications&email_token=AL7HBYYR2UANIUSG3CCNIEDQER72VA5CNFSM4ILKIK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4KIYTQ#issuecomment-521440334, or mute the thread https://github.com/notifications/unsubscribe-auth/AL7HBY6NYHWZDWUG2OOXNODQER72VANCNFSM4ILKIK3Q.
Seems like this issue is caused by PKS rather than JX. Closing this issue.
Summary
Installing Jenkins X to a PKS cluster with --docker-registry does not change the default docker registry: jx install --docker-registry harbor.pks.abc.com
Steps to reproduce the behavior
Installed Jenkins X a PKS 1.4.1 cluster with a custom docker registry. Created a golang-http quickstart application and the step "Build Container Build" failed.
jx get build logs returns: error pushing image: failed to push to destination harbor.corp.local/***/-go:0.0.2: Get http://harbor.corp.local/v2/: dial tcp: lookup harbor.corp.local on 10.100.200.2:53: no such host
Expected behavior
The image should be pushed to the docker registry "harbor.pks.abc.com" which is specified during installation.
Actual behavior
The image got pushed to the default docker registry for PKS, "harbor.corp.local".
Jx version
The output of
jx version
is:Jenkins type
Note that in Classic Jenkins, the --docker-registry is able to set the default docker registry.
Kubernetes cluster
Created using PKS 1.4.1. The kubernetes cluster version is v1.13.5.
Operating system / Environment
Ubuntu 16.04.6 LTS