首页 > 其他分享 >k8s 1.28 calico-nod 节点无法使用本地镜像

k8s 1.28 calico-nod 节点无法使用本地镜像

时间:2024-01-18 20:35:13浏览次数:37  
标签:kubectl nod 0.0 yaml 1.28 registry 镜像 calico

看来一圈抄来抄去的陈年老博客,还不如看博客评论区。
yaml文件的imagePullPolicy的IfNotPresent改为Never 没啥事用,本地存在镜像,kubectl还是选择去阿里代理仓拉取,尴尬的是calico 是从github下载的release-v3.26.4,阿里云镜像代理仓没有这个版本。

nerdctl pull docker.io/calico/cni:v3.26.4

### 报错
unknown-sha256:d6b79c851f45fc1e54a988376788873b2deb3f8f486e400fbb433e64d6647501: downloading    |--------------------------------------|    0.0 B/119.1 KiB
elapsed: 20.7s                                                                   total:   0.0 B (0.0 B/s)      
WARN[0020] reference for unknown type: text/html
FATA[0020] failed to unpack image on snapshotter overlayfs: unexpect

镜像上传到私有仓

自建registry

  1. 需要使用https协议,配置http协议麻烦,放弃

使用阿里云免费提供的自建registry

  1. 将镜像tag之后上传到对应registry仓库
  2. 修改calico.yaml
    (注:执行任何复制的命令之前,必须要知道每条命令作用,不然服务都不知道咋挂的)
cp calico.yaml calico.yaml.bak
sed -i 's/docker.io\/calico/registry.cn-shenzhen.aliyuncs.com\/xxxxxx/g' calico.yaml
rm -rf /var/lib/cni/
kubectl delete -f  calico.yaml
kubectl create -f calico.yaml

标签:kubectl,nod,0.0,yaml,1.28,registry,镜像,calico
From: https://www.cnblogs.com/YueQAQ/p/17973356

相关文章

  • tsx nodejs 增强支持执行typescript 以及esm
    tsx属于一个nodejs的增强包含的特性快速的按需ts以及esm编译支持commonjs以及esm包支持下一代ts扩展(.cts,.mts)隐藏体验特性警告tsrepl解析tsconfig.json适用的场景可以执行运行ts而不需要进行配置更好的与esm,cjs依赖交互说明tsx是一个不错的本地开发工具,可以方便不同模......
  • Node.js(千锋)
    目录Node.js(最全)基础+全栈项目一、Node.js基础1.认识Node.js01nodejs的特性02使用Node.js需要了解多少JavaScript03浏览器环境vsnode环境2.开发环境搭建3.模块、包、commonJS02CommonJS规范03modules模块化规范写法4.Npm&Yarn01npm的使用02全局安装nrm03yar......
  • 11.Node节点维护
    题目:Node节点维护配置环境kubectlconfiguse-contextek8s将名为ek8s-node-0的node节点设置为不可用,并重新调度该node上所有运行的pods。官方参考地址:KubectlReferenceDocs帮助命令:kubectldrain--help解答:1.切换答题环境kubectlconfiguse-contextek8s2.设置......
  • NodeJs——error:03000086:digital envelope routines::initialization error
    前言vue2前端项目在服务器上打包报错,发现是高版本的node使用的是OpenSSL3.0,导致的不兼容,所以先临时抛出下环境变量,继续使用老板本的OpenSSL的实现;步骤解决方法exportNODE_OPTIONS=--openssl-legacy-provider具体报错信息root@iZuf6f5trc95ufa25hqb6eZ:/www/wwwroot/ad-cl......
  • Delete d node at nth position【1月17日学习笔记】
    点击查看代码//Deletednodeatnthposition#include<iostream>usingnamespacestd;structnode{ intdata; node*next;};node*A;voidinsert(intx){ node*temp=newnode; temp->data=x; temp->next=NULL; if(A==NULL){ A=temp;......
  • Inserting a node at nth position【1月17日学习笔记】
    点击查看代码//Insertinganodeatnthposition#include<iostream>usingnamespacestd;structnode{intdata;node*next;};node*A;//全局头指针voidinsert(intx,intn){node*temp=newnode;//temp是局部变量,在stack区,每次调用更新temp-......
  • Inserting a node at beginning,全局变量头指针【1月16日学习笔记】
    点击查看代码//insertinganodeatbeginning,全局变量头指针#include<iostream>usingnamespacestd;structnode{ intdata; node*next;};node*A;voidinsert(intx){ node*temp=newnode;//创建新节点 temp->data=x; temp->next=A;//新节点尾巴指......
  • Inserting a node at beginning,局部变量头指针版本1【1月16日学习笔记】
    点击查看代码//insertinganodeatbeginning,局部变量头指针版本1#include<iostream>usingnamespacestd;structnode{ intdata; node*next;};node*insert(intx,node*A){ node*temp=newnode;//创建新节点 temp->data=x; temp->next=A;//新节......
  • Inserting a node at beginning,局部变量头指针版本2【1月16日学习笔记】
    点击查看代码//insertinganodeatbeginning,局部变量头指针版本2#include<iostream>usingnamespacestd;structnode{ intdata; node*next;};voidinsert(intx,node**A){ node*temp=newnode;//创建新节点 temp->data=x; temp->next=*A;//新......
  • javascript node.js , java jvm , jdk, jre 的理解。
    网上的截图: 来看看node.js     再来看看java.     ......