Kubernetes 1.23.1 集群安装Istio 1.17.8

发布于:2024-11-03 ⋅ 阅读:(135) ⋅ 点赞:(0)

1. 系统环境

服务器版本 docker软件版本 Kubernetes(k8s)集群版本 Istio软件版本 CPU架构
Kylin Linux Advanced Server release V10 Docker version 20.10.9 v1.23.1 Istio 1.17.8 aarch64

2. 下载 Istio

2.1 下载

下载地址:

https://github.com/istio/istio/releases

注意:找到与k8s对应的版本 https://blog.csdn.net/nanhai_happy/article/details/143355156?spm=1001.2014.3001.5502

找到需要的版本和架构,通过浏览器下载,或者直接在终端wget下载

cd /opt/
wget https://github.com/istio/istio/releases/download/1.17.8/istio-1.17.8-linux-arm64.tar.gz
tar -xvf istio-1.17.8-linux-arm64.tar.gz
cd istio-1.17.8

在这里插入图片描述

  • bin下是istioctl执行程序
  • manifests是istio相关的主要部署组件
  • manifest.yaml是当前istio版本中manifests目录下各组件的配置和依赖描述
  • samples是一套istio应用样例,用来部署测试做功能校验的
  • tools是一些工具脚本。

2.2 新增path 环境变量及开启自动补全

vim /etc/profile

export PATH=/opt/istio-1.17.8/bin:$PATH

source /etc/profile

自动补全:

cp istioctl.bash ~/
source ~/istioctl.bash

3. 安装Istio

3.1 profile list配置

查看当前版本profile列表使用istioctl profile list命令:
在这里插入图片描述

  • default:根据 IstioOperator API 的默认设置启动组件。 建议用于生产部署和 Multicluster Mesh 中的 Primary Cluster。您可以运行 istioctl profile dump 命令来查看默认设置。
  • demo:这一配置具有适度的资源需求,旨在展示 Istio 的功能。 它适合运行 Bookinfo 应用程序和相关任务。 这是通过快速开始指导安装的配置。此配置文件启用了高级别的追踪和访问日志,因此不适合进行性能测试。
  • minimal:与默认配置文件相同,但只安装了控制平面组件。 它允许您使用 Separate Profile 配置控制平面和数据平面组件(例如 Gateway)。
  • remote:配置 Multicluster Mesh 的 Remote Cluster。
  • empty:不部署任何东西。可以作为自定义配置的基本配置文件。
  • preview:预览文件包含的功能都是实验性。这是为了探索 Istio 的新功能。不确保稳定性、安全性和性能(使用风险需自负)。

3.2 安装default配置

在这里插入图片描述

注意,install这一步会从网上下载镜像,需要进行docker pull 加速处理 https://blog.csdn.net/nanhai_happy/article/details/136552109
或者提前把镜像istio/pilot:1.17.8、istio/proxyv2:1.17.8提前docker pull下来,再docker load进去

3.3 检查安装状态

kubectl get deployments.apps -n=istio-system
在这里插入图片描述

4. 卸载istio

要从集群中完整卸载Istio

istioctl x uninstall --purge

控制平面的命名空间,删除istio-system

kubectl delete namespace istio-system

5. 参考文献

https://www.cnblogs.com/zhangmingcheng/p/15700249.html
https://www.cnblogs.com/renshengdezheli/p/16836404.html
https://istio.io/latest/docs/releases/supported-releases/#support-status-of-istio-releases
https://docs.daocloud.io/mspider/intro/istio-k8s/
https://istio.io/archive/


网站公告

今日签到

点亮在社区的每一天
去签到