I’m trying to initialize a kubernetes cluster with kubeadm (v1.20.4) without internet connection.
And this is the problem what I’m facing.
I installed containerd (as container runtime), kubeadm, kubectl, kubectl on master node.
I did intentionally not install docker-ce, docker-ce-cli since the kubelet detects dockershim as container runtime over containerd when docker is installed on the machine.
For this reason, I should not install docker on the master.
When I tried to
kubeadm initwith a config yaml file which have this line:
And now I need docker-ce and docker-ce-cli on the master node for
a. the configuration of insecure-registry in
docker login mycompany-private-registry:5000
Here’s what I have tried, but no luck:
- docker login to company registry with docker-ce-cli only (no docker-ce), but it gave me an error like:
http: server gave HTTP response to HTTPS client
So I concluded that I need docker-ce on the master node and configure insecure-registry.
(I cannot change the configuration of registry server since I’m not an admin of the private registry.)
~/.docker/config.jsonwhich have docker login credentials from another machine with docker engine.
Is there any way to detect conatainerd as container runtime of kubelet even when docker is installed ont the same machine?
Or way to login to private registry with out docker-ce/cli?
Source: Docker Questions