最近学习 docker 和 k8s; 由于 k8s 部署 Deployment 的时候,从 docker.io 拉取镜像容易超时,于是考虑搭建一个本机的 docker hub。了解到 docker 有一个 registry 镜像,遂学习之:Deploy a registry server 在mac 上新建了一个 registry 项目,编写Makefile如下 REGISTRY_REPO=/var/lib/registry/docker/registry/v2...
you can also use Amazon ECR as a pull through cache for the official Kubernetes registry at registry.k8s.io. With a pull through cache, you won’t have external dependencies on the community run registry for commonly used images such as the Kubernetes metrics serve...
$ kubectl run leader-elector --image=k8s.gcr.io/leader-elector:0.5 --replicas=3 -- --election=example --http=0.0.0.0:4040 # create a proxy to your Kubernetes api server $ kubectl proxy 4 changes: 2 additions & 2 deletions 4 election/client/nodejs/pod.yaml Original file line numberDi...
2. 创建ca证书和私钥 :集群间通信要加密,那么肯定要有ca的创建,以后就用这一步创建的ca当作证书颁发机构给自己发证书,也可通过配置文件省略 3. docker安装与卸载 :k8s基于docker,要先安装docker 4. harbor安装 :有了docker之后,需要用到docker仓库,这里搭建一个镜像仓库平台,便于管理 5. harbor使用 :上传和下载...
3.3 k8sworker1节点配置从私有仓库上传和拉取镜像 3.3.1 上传镜像到私有仓库 3.3.2 从私有仓库里拉取镜像 四.附录:删除私有仓库镜像的Python脚本 一.系统环境 服务器版本docker软件版本CPU架构 CentOS Linux release 7.4.1708 (Core) Docker version 20.10.12 x86_64 二.前言 在使用Docker拉取镜像时,Docker首先默...
apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.11.1 creationTimestamp: null name: scrapeconfigs.monitoring.coreos.com spec: group: monitoring.coreos.com names: categories: - prometheus-operator kind: ScrapeConfig l...
k8s中使用 代码语言:javascript 复制 kubectl create deployment my-app --image=localhost:5000/my-app:0.0.1-SNAPSHOT -ndev 注意:minikube我使用hyperkit driver,k8s相当于访问本地,所以是localhost:5000 其它方法(没试成功) 在deployment.yml中配置 代码语言:javascript 复制 imagePullSecrets: - name: regcred...
https://kubernetes.io/docs/setup/independent/install-kubeadm/ kubernetes集群的部署方式:1:通过手动将k8s集群节点的各个组件部署为主机应用,通过systemctl来启动和关闭各组件,并将其添加到开机自启。(过程繁琐复杂)2:通过kubeadm这样的工具(由k8s官方提供的部署工具),这个方式是将各个组件运行为pod(静态pod),也需要...
Delete the connected registry extension Run the az k8s-extension delete command to delete the connected registry extension: Azure CLI 複製 az k8s-extension delete --name myconnectedregistry --cluster-name myarcakscluster \ --resource-group myresourcegroup \ --cluster-type connectedClusters ...
kubernetes.io/ingress.class: nginx spec: rules: - host:k8s-test.your_domainhttp: paths: - pathType: Prefix path: "/" backend: service: name: hello-kubernetes port: number: 80 --- apiVersion: v1 kind: Service metadata: name: hello-kubernetes ...