k8s kubernetes Lesson 2 yaml
https://kubernetes.github.io/ingress-nginx/examples/docker-registry/ https://sueboy.blogspot.com/2019/11/kubernetes-nodeport.html PS:Close basic auth just remark configmap.yml auth: #auth: # htpasswd: # realm: basic-realm # path: /auth/htpasswd README.md # Docker Registry K8s Domain:docker-registry Port:30500 /etc/hosts add 192.168.99.118 docker-registry ## ip is k8s host eth2's ip Finish command: docker login -u username -p password docker-registry:30500 [](https://3.bp.blogspot.com/-Wj82n6nvHkw/XHUVI-gNy7I/AAAAAAAAUE8/rs1l8mQuu8cKvkoMcZGn0lOfJUWY3udMgCLcBGAs/s1600/dockerloginsuccess.jpg) https://docs.docker.com/registry/insecure/ Deploy a plain HTTP registry ---------------------------- ```bash /etc/docker/daemon.json { "insecure-registries" : ["docker-registry:30500"] } Restart Docker for the changes to take effect https://blog.csdn.net/zsd498537806/article/details/79290732 https://serverfault.com/questions/611120/failed-tls-handshake-does-not-contain-any-ip-sans http://dockone.io/article/684 #-subj “/C=/ST=/L=/O=/OU=/CN=192.168.99.118” -subj “/C=/ST=/L=/O=/OU=/CN=docker-registry” ...