当前位置: 首页 > article >正文

K8s Calico替换为Cilium,以及安装Cilium过程

一、删除Calico

kubectl delete daemonset calico-node -n kube-system

kubectl delete deployment calico-kube-controllers -n kube-system
kubectl delete ds kube-flannel-ds -n kube-system
kubectl delete cm calico-config -n kube-system
kubectl delete secret calico-etcd-secrets -n kube-system
kubectl delete clusterrolebinding calico-node
kubectl delete clusterrole calico-node
kubectl delete sa calico-node -n kube-system
kubectl delete sa calico-kube-controllers -n kube-system
kubectl delete crd bgppeers.crd.projectcalico.org
kubectl delete crd bgpconfigurations.crd.projectcalico.org
kubectl delete crd ippools.crd.projectcalico.org
kubectl delete crd hostendpoints.crd.projectcalico.org
kubectl delete crd clusterinformations.crd.projectcalico.org
kubectl delete crd felixconfigurations.crd.projectcalico.org
kubectl delete crd networkpolicies.crd.projectcalico.org
kubectl delete crd globalnetworkpolicies.crd.projectcalico.org
kubectl delete crd globalnetworksets.crd.projectcalico.org
kubectl delete crd networksets.crd.projectcalico.org

二、下载Cilium

curl -L --remote-name-all https://github.com/cilium/cilium-cli/releases/download/v0.10.4/cilium-linux-amd64.tar.gz{,.sha256sum}
sha256sum --check cilium-linux-amd64.tar.gz.sha256sum
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/local/bin
rm cilium-linux-amd64.tar.gz{,.sha256sum}

三、安装Cilium

要使用 Helm 下载 Cilium 到本地,你可以按照以下步骤操作:

### 步骤 1:安装 Helm

如果你还没有安装 Helm,可以使用以下命令安装 Helm:

```bash
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
```

### 步骤 2:添加 Cilium Helm 仓库

添加 Cilium 的 Helm 仓库:

```bash
helm repo add cilium https://helm.cilium.io/
helm repo update
```

### 步骤 3:下载 Cilium Helm Chart 到本地

使用 `helm pull` 命令下载 Cilium 的 Helm Chart 到本地:

```bash
helm pull cilium/cilium --version 1.16.1 --untar
```

这将会下载并解压 Cilium 的 Helm Chart 到当前目录下的 `cilium` 文件夹中。

### 示例总结

#### 安装 Helm

```bash
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
```

#### 添加 Cilium Helm 仓库

```bash
helm repo add cilium https://helm.cilium.io/
helm repo update

cilium install

四、安装连接和状态

cilium status


cilium connectivity test

 

 

五、helm验证

 


http://www.kler.cn/news/316675.html

相关文章:

  • 进阶SpringBoot之集合 Redis
  • html/css怎么禁用浏览器自动填写
  • 使用 Nginx 搭建 Webdav 服务
  • 安全通信网络等保
  • Android OpenGLES2.0开发(二):环境搭建
  • 付费电表系统的通用功能和应用过程参考模型(中)
  • GPT1-GPT3论文理解
  • 关于wordPress中的用户登录注册等问题
  • MySQL函数介绍--日期与时间函数(二)
  • react hooks--useMemo
  • linux文件IO 缓存,行缓存,三类读写函数,fprint,sprintf等
  • 计算机网络-小型综合网络的搭建涉及到无线路由交换安全
  • Qt C++,QByteArray读取一个超过2GB的文件,写一类封装一下
  • Windows 配置docker和ubuntu系统
  • css如何设置间距
  • 防火墙详解(一) 网络防火墙简介
  • 网络爬虫到底难在哪里?
  • 数据结构(十二)——栈(下)(面试题)
  • Informer模型复现项目实战
  • 数据库性能优化之分表
  • ollama 部署教程(window、linux)
  • 自定义类型
  • Redis五种基本数据结构的使用
  • ARM/Linux嵌入式面经(三四):CVTE
  • U盘格式化了怎么办?这4个工具能帮你恢复数据。
  • maxwell 输出消息到 kafka
  • 核心复现—计及需求响应的区域综合能源系统双层优化调度策略
  • 南大通用数仓-GCDW-学习-03-用户管理
  • 工业级5口485中继器通讯光电隔离防雷RS232HUB分共享分割器RS485集线器
  • 基于MySQL的数据库课程设计详解