Rancher and k8s 2019(5)Private Registry
Check Docker Configuration
> cat /etc/docker/daemon.json
{
"insecure-registries": [
"192.168.56.110:8088",
"192.168.56.111:8088",
"192.168.56.112:8088",
"rancher-worker1:8088",
"rancher-worker2:8088",
"rancher-home:8088"
]
}
Restart Docker service
> sudo systemctl restart docker.service
Prepare the nginx image
> docker login rancher-home:8088 -u="sillycat" -p=“xxxxxx"
> docker pull nginx:alpine
> docker tag nginx:alpine rancher-home:8088/sillycat/nginx:v1
> docker push rancher-home:8088/sillycat/nginx:v1
Fetch the image
> docker pull rancher-home:8088/sillycat/nginx:v1
Go to Rancher Admin Console
https://rancher-home/p/c-2ldm9:p-p7bv7/registries
[Resources] —> [Add Registry] —>
Name: HarborHA
Address: 192.168.56.110:8088
Username: sillycat
Password: xxxxx
Can not use hostname, need to use IP
> docker login 192.168.56.110:8088 -u="sillycat" -p="xxxxxx"
> docker tag nginx:alpine 192.168.56.110:8088/sillycat/nginx:v1
> docker push 192.168.56.110:8088/sillycat/nginx:v1
Deploy the Workload like this
Image: 192.168.56.110:8088/sillycat/nginx:v1
It worked pretty well.
References:
https://blog.csdn.net/GMingZhou/article/details/94025725
registry
https://github.com/Joxit/docker-registry-ui
https://juejin.im/post/5b0f4364f265da08f215d9e8
https://segmentfault.com/a/1190000015108428
https://joxit.dev/docker-registry-ui/
分享到:
相关推荐
K8S Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:56:40Z", GoVersion:...
### 关于Rancher-K8s打造企业私有云平台 #### 概述 Rancher-K8s作为一款高效的企业级私有云平台解决方案,它不仅提供了强大的容器编排能力,还支持Kubernetes集群的管理和部署。对于企业而言,Rancher-K8s能够帮助...
K8S Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:56:40Z", GoVersion:...
Docker-Rancher-K8S教程
K8S Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:56:40Z", GoVersion:...
使用RKE构建企业生产Kubernetes集群 内容包含: 1.集群主机准备 2.daocker部署 3.docker compose安装 4.添加rancher用户 5.生成ssh证书用户部署集群 6.rke工具下载 7.初始化rke配置文件 ....
总结来说,容器持久化存储是解决容器化应用数据持久化的关键技术,Kubernetes作为云原生的操作系统,提供了强大的容器管理和编排能力,而Rancher则为企业级K8s部署提供了便利的管理平台。这三者共同推动了容器云技术...
自动安装Docker、rancher、k8s、mysql、redis、haproxy、mongodb、nginx、Node.js , mosquitto (MQTT
k8s平台rancher V2.4.5 docker镜像包包含:rancher/prom-node-exporter v0.18.1、rancher/mirrored-flannelcni-flannel v0.16.1、registry.aliyuncs.com/google_containers/kube-proxy v1.17.0、rancher/mirrored-...
jenkins调用shell触发rancher命令通过yml方式部署微服务镜像
【Dapr学习(2)之Rancher2.63(k8s&k3s)环境安装Dapr】 在本文中,我们将深入探讨如何在Kubernetes(k8s)和k3s环境中,利用Rancher2.6.3管理工具安装Dapr。Dapr(Distributed Application Runtime)是一个...
k8s离线部署-centos7-附部署资源
"二进制高可用k8s集群一键部署脚本"是为简化k8s集群搭建过程而设计的工具,它基于阿良的二进制部署文档,旨在帮助开发者和学习者快速创建一个稳定的高可用k8s集群。 首先,了解二进制部署意味着不依赖于预打包的...
k8s部署rancher,rancher证书文件
在本篇内容中,我们将详细讨论如何使用Rancher 2.2版本部署Kubernetes(k8s)集群,以及涉及的关键组件和操作步骤。Rancher是一个流行的开源平台,用于管理和部署容器化应用程序,而Kubernetes则是一个自动化容器...
k8s-dns-sidecar-amd64-1.14.8镜像,镜像使用方法: docker load -i k8s-dns-sidecar-amd64-1.14.8.tar.gz
kubernetes单节点Rancher安装部署手册 kubernetes是一个开源的容器编排系统,可以自动部署、扩展和管理容器化应用程序。Rancher是一个kubernetes-as-a-service解决方案,提供了图形化界面来部署和管理kubernetes...