zl程序教程

您现在的位置是:首页 >  其他

当前栏目

istio安装命令整理

安装命令 整理 istio
2023-09-14 09:01:49 时间

istio安装 和 bookinfo部署。

访问:http://localhost:31357/productpage

istio 安装

版本号 改成 16.

如果执行:

在这里插入图片描述

修改ip

199.232.28.133 raw.githubusercontent.com
curl -sL https://github.com/istio/istio/releases | grep -o 'releases/[0-9]*.[0-9]*.[0-9]*/' | sort --version-sort | tail -1 | awk -F'/' '{ print $2}'

master节点上执行:

curl -L https://istio.io/downloadIstio | sh -
下载安装包,解压。


Downloading istio-1.5.1 from https://github.com/istio/istio/releases/download/1.5.1/istio-1.5.1-linux-amd64.tar.gz ...


Istio has been successfully downloaded into the istio-1.5.1 folder on your system.

Next Steps:
See https://istio.io/latest/docs/setup/install/ to add Istio to your Kubernetes cluster.

To configure the istioctl client tool for your workstation,
add the /cpf/istio-1.5.1/bin directory to your environment path variable with:
	 export PATH="$PATH:/cpf/istio-1.5.1/bin"

Begin the Istio pre-installation check by running:
	 istioctl x precheck 

Need more information? Visit https://istio.io/latest/docs/setup/install/ 
[root@istio-master cpf]# 

istio安装:

istioctl manifest apply --set profile=demo

default: pilot ingressgateway,prometheus

demo:基本所有组件全有。

minimal : pilot

大家安装时:提前导入镜像。百度网盘。

在这里插入图片描述

开启sidecar注入

kubectl label namespace default istio-injection=enabled
给default命名空间开启 sidecar的 自动注入。

deploy应用的时候,会同时部署一个sidecar。container里:应用 和 istio-proxy.

开启外部访问:

export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')

镜像地址:

链接:https://pan.baidu.com/s/1AuNqLUGz8ozO2tLmfP82hQ 
提取码:rwin 
复制这段内容后打开百度网盘手机App,操作更方便哦