現在嘗試搭建乙個私有的docker registry,並且配置使k8s.gcr.io、gcr.io和quay.io等統統指向它來加快k8s搭建速度
依據《centos7實驗機模板搭建部署》部署一台實驗機:registry 192.168.77.10
依據《centos7部署安裝docker和docker compose工具簡錄》部署安裝docker環境
相關實驗介紹可在《centos7部署安裝私有docker registry》找到
# 瀏覽檢視
yum -y install jq
repos=
$(curl -s localhost/v2/_catalog |jq '.repositories'
|sed
's/"//g'
)for repo in$do
tags=
$(curl -s localhost/v2/$/tags/list|jq '.tags'
|sed
's/"//g'
) for tag in$do
echo
"k8s.gcr.io/$:$"
done
done
echo
"192.168.77.10 k8s.gcr.io"
>>/etc/hosts
echo
"192.168.77.10 quay.io"
>>/etc/hosts
echo
"192.168.77.10 gcr.io"
>>/etc/hosts
sed -i "s/^.*registry-mirrors.*$/&\n ,\"insecure-registries\": [\"k8s.gcr.io\", \"quay.io\", \"gcr.io\"]/g" /etc/docker/daemon.json
sed -i 's|^\[service\]$|&\nenvironmentfile=-/etc/docker/daemon.json|g' /lib/systemd/system/docker.service
systemctl daemon-reload && systemctl restart docker
[toc]
centos 7 部署k8s集群
systemctl stop firewalld systemctl disable firewalld yum y install ntp systemctl start ntpd systemctl enable ntpd yum update y 安裝etcd kubernetes yum y...
centos 7 部署k8s集群,並發布nginx
k8s已成潮流,一般用來做容器排程,這裡簡單記錄下本機安裝和體驗的過程。k8s選擇 minikube。curl lo sudo install minikube linux amd64 usr local bin minikube yum install conntrack y yum remove...
K8S部署步驟 6 部署etcd集群
kuberntes系統使用etcd儲存所有資料,本文件介紹部署乙個三節點高可用的etcd集群的步驟,這三個節點復用kubernetes master機器,分別命名為erp kube test erp kube test2 erp kube test3 source root local bin en...