knative lstio 网络组件安装

. 安装地址参考

https://knative.dev/docs/install/yaml-install/serving/install-serving-with-yaml/#install-the-knative-serving-component

 

2.下载istio.yaml 、net-istio.yaml、release.yaml

github 地址

https://github.com/knative-sandbox/net-istio/releases/tag/knative-v1.0.0

 

3.将要istio.yaml 、net-istio.yaml 上传到带有安装好kubectl 的机器

 


 

4. 执行kubectl 命令

kubectl ly -l knative.dev/crd-install=true -f istio.yaml

执行后控制台显示如下

 

kubectl apply -f istio.yaml

 


 

我们在检查一下rancher 平台中新增加了哪些地方

1 工作负载

 

在命名空间istio-system 中新增加2个pod istio-ingressgateway 和istiod

2. 负载均衡

 

负载均衡中新增istio-ingressgateway L4 负载均衡 软件

3. 服务发现

 

同样新增 istio-ingressgateway 和istiod 对应的网络服务

4. HPA

 

出现istio-system:istiod 高可用服务

5. 配置映射

在配置映射对应的istio-system 命名空间中对应产生如下配置

 

最后我们在执行net-istio.yaml

kubectl apply -f net-istio.yaml

控制台中产生如下文件创建记录

 

对应工作负载也会产生新的POD

在 knative-serving 命名空间中会产生 net-istio-controller 和net-istio-webhook

 

当然对应的服务发现会出现新的 knative-local-gateway 服务发现组件

 

这里面其实我们可以通过net-istio.yaml 查看

 


 

这里面我们就细细介绍了,感兴趣的同学可以自己研究一下。

 

5. 我们用kubectl 命令检查istio-ingressgateway

kubectl --namespace istio-system get service istio-ingressgateway

 

我们在 rancher 平台上面检查

 

发现刚好能够对应上。

好了今天就大家介绍到这来,后面再给大家介绍如何使用knative lstio 网络。

胜象大百科