-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pull from KIND local container image registry: server gave HTTP response to HTTPS client #2604
Comments
Above discussion not working for me. And also tried:
But neither above worked... |
for the registry configured in https://kind.sigs.k8s.io/docs/user/local-registry/, the appropriate containerd config is included in the script
that's not going to work, because you can have your in-cluster app pull at |
this part of the script:
is where we tell containerd "when you want to pull an image from localhost:${reg_port}, actually use |
Thank you Benjamin! |
I just gave it a shot telling my in-cluster app pull at
my config
|
Inside the docker network / containers the port is always 5000, the |
You probably need to:
|
Thank you Benjamin for this instant reply, will try it out now. |
Hi Benjamin, I updated it to use
I also updated the Update: and maybe add more context here, basically its airflow schedule pod creating another airflow executor pod, and the error is from when creating the executor pod, which maybe makes it more complicated. Quick search and it seems I may miss some configuration to specify insecure registry, like
but I didn't find much for where it seems then my config will be like
but not sure, maybe you have some quick idea on top of your mind how to configure it? |
I had this, or a very similar problem. @keypointt For me, when I first started the kind docker container the docker exec -it kind-control-plane cat /etc/containerd/config.toml
version = 2
[plugins]
[plugins."io.containerd.grpc.v1.cri"]
// trimmed
[plugins."io.containerd.grpc.v1.cri".registry]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5000"]
endpoint = ["http://kind-registry:5000"] docker exec -it kind-control-plane crictl info
// trimmed
"registry": {
"configPath": "",
"mirrors": null, // <-- this should have been set based on config above in toml
"configs": null,
"auths": null,
"headers": null
} I pushed the image When I ran; docker exec -it kind-control-plane bash -c "crictl -r unix:///var/run/containerd/containerd.sock pull localhost:5000/hello-app:1.0"
FATA[0000] pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "localhost:5000/hello-app:1.0": failed to resolve reference "localhost:5000/hello-app:1.0": failed to do request: Head "http://localhost:5000/v2/hello-app/manifests/1.0": dial tcp [::1]:5000: connect: connection refused ✅ to fix the problem, I had to restart to docker container Now; docker exec -it kind-control-plane crictl info
//trimmed
"registry": {
"configPath": "",
"mirrors": { // <-- mirrors is now set
"localhost:5000": {
"endpoint": [
"http://kind-registry:5000"
]
}
},
"configs": null,
"auths": null,
"headers": null
}, And;
Containers were now pulled from my local registry. |
I can confirm that restarting the control plane container worked for me too. After restart, After doing so, Helm is all funky. I installed a helm chart successfully (the nginx sample from the |
aha, that's #2262 this is fixed at HEAD but a pile of things has led to us only recently reaching a ~releasable state. if you install kind from main it should be fixed. we should have a release soon. EDIT: jinx :^) |
An interim fix in case you don't want to install from main is to do |
you should be able to do this with the shell line: (might want to do |
Hi folks thank you so much and it seems working for me to restart the docker nodes! Meanwhile, after restart, I got similiar issue but different from Zak. In my case it's requesting to Extracted from below full log, my case is
I believe the issue I have is because I'm using I'll try to
Will report back and then close issue :) |
Marking this issue as closed, since the issue is no longer related to KIND itself. Thank you all for your help! 👍 |
The following configuration works for me:
|
In my case nothing abover words. What works for me was define the digest in the image parameter:
|
Hi,
Following guide at https://kind.sigs.k8s.io/docs/user/local-registry/, I created a local registry, and set
reg_port='5050'
.All works fine on my local laptop for
docker pull/push
, but when I deploy my app into the Kubernetes cluster and running it in the pod, then I got error onThen I googled and enabled insecure registry connection by adding
insecure_skip_verify = true
following some stackoverflow postsBut when I
exec
to the pod and runimg pull
against local registry, still error on http/https. (butimg pull
from DockerHub is working)I'm thinking of setting HTTPS for the local registry I created, but just curious is there a better way to address this issue of pull/push from pod against local registry?
Thank you very much!
The text was updated successfully, but these errors were encountered: