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

Kubeadm coredns image path wrong when use local docker registry #2525

Closed
mabombo opened this issue Jul 9, 2021 · 6 comments
Closed

Kubeadm coredns image path wrong when use local docker registry #2525

mabombo opened this issue Jul 9, 2021 · 6 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@mabombo
Copy link

mabombo commented Jul 9, 2021

Is this a BUG REPORT or FEATURE REQUEST?

Choose one: BUG REPORT

Versions

kubeadm version (use kubeadm version): 1.21.2-0

Environment:

  • Kubernetes version (use kubectl version): 1.21.2-0
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): centos 7
  • Kernel (e.g. uname -a):Linux centos01 3.10.0-1160.31.1.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Others:

What happened?

When you get the list of images to pull using default repo end custom repo for coredns image the result is different.
For the custom repo the image path it's wrong

Default repo
k8s.gcr.io/coredns/coredns:v1.8.0
Custom repo
x.x.x.x:8082/coredns:v1.8.0

What you expected to happen?

The path of coredns it should be the same but at the moment it's different. In the second case (using custom repo) it's wrong.
It's not possible pull the image.

How to reproduce it (as minimally and precisely as possible)?

$> kubeadm -v 10 config images list

k8s.gcr.io/kube-apiserver:v1.21.2
k8s.gcr.io/kube-controller-manager:v1.21.2
k8s.gcr.io/kube-scheduler:v1.21.2
k8s.gcr.io/kube-proxy:v1.21.2
k8s.gcr.io/pause:3.4.1
k8s.gcr.io/etcd:3.4.13-0
k8s.gcr.io/coredns/coredns:v1.8.0

When you get the list of images to pull using custom docker registry

kubeadm -v 10 config images list --image-repository=x.x.x.x:8082

x.x.x.x:8082/kube-apiserver:v1.21.2
x.x.x.x:8082/kube-controller-manager:v1.21.2
x.x.x.x:8082/kube-scheduler:v1.21.2
x.x.x.x:8082/kube-proxy:v1.21.2
x.x.x.x:8082/pause:3.4.1
x.x.x.x:8082/etcd:3.4.13-0
x.x.x.x:8082/coredns:v1.8.0

Anything else we need to know?

This problem it is not presente in the preview version of kubeadm (1.20.8).
In this case the results of the commands are the same.

kubeadm -v 10 config images list

k8s.gcr.io/kube-apiserver:v1.20.8
k8s.gcr.io/kube-controller-manager:v1.20.8
k8s.gcr.io/kube-scheduler:v1.20.8
k8s.gcr.io/kube-proxy:v1.20.8
k8s.gcr.io/pause:3.2
k8s.gcr.io/etcd:3.4.13-0
k8s.gcr.io/coredns:1.7.0

kubeadm -v 10 config images list --image-repository=x.x.x.x:8082

x.x.x.x:8082/kube-apiserver:v1.20.8
x.x.x.x:8082/kube-controller-manager:v1.20.8
x.x.x.x:8082/kube-scheduler:v1.20.8
x.x.x.x:8082/kube-proxy:v1.20.8
x.x.x.x:8082/pause:3.2
x.x.x.x:8082/etcd:3.4.13-0
x.x.x.x:8082/coredns:1.7.0

@neolit123
Copy link
Member

/kind support

It used to be customrepo/coredns/coredns but we changed that back to customrepo/coredns after too many complaints that we do not have to preserve the gcr.k8s.io paths for custom registries.

To customise it you can use the kubeadm config file - clusterconfiguration.dns.imageregistry.

Also please always read the release notes before upgrading kubeadm.

/close

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Jul 9, 2021
@k8s-ci-robot
Copy link
Contributor

@neolit123: Closing this issue.

In response to this:

/kind support

It used to be customrepo/coredns/coredns but we changed that back to customrepo/coredns after too many complaints that we do not have to preserve the gcr.k8s.io paths for custom registries.

To customise it you can use the kubeadm config file - clusterconfiguration.dns.imageregistry.

Also please always read the release notes before upgrading kubeadm.

/close

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.

@smcquay
Copy link

smcquay commented Oct 25, 2021

@neolit123 I'm still seeing this issue. Do you have a workaround?

@Raptus1
Copy link

Raptus1 commented Nov 4, 2021

/kind support

It used to be customrepo/coredns/coredns but we changed that back to customrepo/coredns after too many complaints that we do not have to preserve the gcr.k8s.io paths for custom registries.

To customise it you can use the kubeadm config file - clusterconfiguration.dns.imageregistry.

Also please always read the release notes before upgrading kubeadm.

/close

But now that coredns have mixed around and moved on k8s.gcr.io even more, the path for custom registries is not longer preserved (again).

Can this be restored so that the path is preserved correctly for the custom registry?
IE: customrepo/coredns/coredns

@neolit123
Copy link
Member

neolit123 commented Nov 4, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

5 participants