LoginSignup
1
1

More than 3 years have passed since last update.

Microk8sでPrivateRegistryからpullしようとすると「http: server gave HTTP response to HTTPS client」とでる

Posted at

展開しているPrivateRegistryの内容で書き換える

vim /var/snap/microk8s/current/args/containerd-template.toml
        [plugins.cri.registry.mirrors."local.insecure-registry.io"]
          endpoint = ["http://127.0.0.1:30500"]

再起動

sudo snap restart microk8s

Pullしてくるサーバをlocal.insecure-registry.ioに置き換える

nginx-deployment.ymal
      containers:
      - image: local.insecure-registry.io/test/nginx
        name: nginx
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1