Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support to pull base images from insecure registries. #308

Conversation

everpeace
Copy link
Contributor

@everpeace everpeace commented Aug 24, 2018

Motivation

We operate an insecure docker registry and kubernetes cluster in on-premise environment. kaniko can push container images to the insecure registry. But, can't pull from the insecure registry.

How

make --insecure-skip-tls-verify be able to affect when pulling images.

Because user should be able to use multi stage build, with this option, it tries to connect to a registry in secure way first. Only when it failed, it will switch to connect insecure mode.

@container-tools-bot
Copy link
Collaborator

Hi @everpeace. Thanks for your PR.

I'm waiting for a GoogleContainerTools member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

SnapshotMode string
Bucket string
DockerInsecureSkipTLSVerify bool
DockerInsecureSkipTLSVerifyAtPull bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be fine with just using the same DockerInsecureSkipTLSVerify flag for both of these, WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be fine too. I'll fix it 👍

@everpeace everpeace force-pushed the support-insecure-skip-verify-at-pull branch 2 times, most recently from cad2962 to 739c7bb Compare August 24, 2018 14:16
@everpeace
Copy link
Contributor Author

@dlorenc I changed to re-use --insecure-skip-tls-verify for pulling from insecure registries.

and I squashed my commits. Would you mind taking a look again?

@everpeace everpeace force-pushed the support-insecure-skip-verify-at-pull branch 2 times, most recently from d863656 to fe02e5e Compare August 24, 2018 14:23
@everpeace everpeace force-pushed the support-insecure-skip-verify-at-pull branch from fe02e5e to 3abfc63 Compare August 24, 2018 14:26
@dlorenc
Copy link
Collaborator

dlorenc commented Aug 24, 2018

Looked like an IO timeout, I'll retry the test run.

@priyawadhwa
Copy link
Collaborator

Hey @everpeace, this needs a rebase.

@priyawadhwa
Copy link
Collaborator

Hey @everpeace, with #409 kaniko supports pulling and pushing from insecure registries. I'll go ahead and close this PR.

@everpeace
Copy link
Contributor Author

Thnaks, actually dtaniwaki is my colleague :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants