Istio - Installation

简介: 了解Istio 安装,以及配置详解

# Istio 下载

curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.4.6 sh -

cd istio-1.4.6

export PATH=$PWD/bin:$PATH

image.jpeg

---

VERSION=$(curl --silent "https://api.github.com/repos/istio/istio/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')

curl -L https://git.io/getLatestIstio | ISTIO_VERSION=$VERSION sh -

cd istio-$VERSION

export PATH=$PWD/bin:$PATH

image.jpeg



# Istio 安装

istioctl manifest apply --set profile=demo


# 将IngressGateway ServiceType修改成NodePort

kubectl patch svc -n istio-system istio-ingressgateway -p '{"spec": {"type": "NodePort"}}'


# Profile 分类

default:根据IstioOperatorAPI的默认设置启用组件 (建议用于生产部署)。您可以通过运行命令显示默认设置istioctl profile dump。

demo:旨在展示Istio功能且资源需求适中的配置。适合运行Bookinfo应用程序和相关任务。这是随快速入门说明一起安装的配置。

minimal:使用Istio的流量管理功能所需的最少组件集。

sds:  类似default ,但是启用了 Istio 的 SDS (secret discovery service) 功能。 这个配置文件默认启用了附带的认证功能 (Strict Mutual TLS)。

remote:用于配置的远程簇 的多组网格与 共享控制平面配置。

empty:不部署任何内容。这可用作自定义配置的基本配置文件。

preview:预览配置文件包含实验性功能。目的是探索Istio的新功能。不能保证稳定性,安全性和性能-使用后果自负。


Istio 1.4 及之前

https://archive.istio.io/v1.5/pt-br/docs/setup/additional-setup/config-profiles/

image.jpeg

Istio 1.5 & 1.6

https://istio.io/latest/docs/setup/additional-setup/config-profiles/

image.jpeg


# dump profile到文件

istioctl profile dump minimal > minimal.yaml


# BookInfo

## 命名空间自动注入sidecar

kubectl label namespace default istio-injection=enabled

## 微服务部署

kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml

## 服务入口配置

kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml


image.jpeg



目录
相关文章
|
9月前
|
Prometheus 负载均衡 Kubernetes
Service Mesh: Istio vs Linkerd
根据CNCF的最新年度调查,很明显,很多人对在他们的项目中使用服务网格表现出了浓厚的兴趣,并且许多人已经在他们的生产中使用它们。近69%的人正在评估Istio,64%的人正在研究Linkerd。Linkerd是市场上第一个服务网格,但是Istio使服务网格更受欢迎。这两个项目都是最前沿的,而且竞争非常激烈,因此选择一个项目是一个艰难的选择。在此博客文章中,我们将了解有关Istio和Linkerd体系结构,其运动部件的更多信息,并比较其产品以帮助您做出明智的决定。
101 0
|
10月前
|
负载均衡 Kubernetes 监控
[Istio是什么?] 还不知道你就out了,40分钟快速理解(上)
[Istio是什么?] 还不知道你就out了,40分钟快速理解
115 0
|
10月前
|
负载均衡 Kubernetes 网络协议
[Istio是什么?] 还不知道你就out了,40分钟快速理解(下)
[Istio是什么?] 还不知道你就out了,40分钟快速理解(下)
75 0
|
运维 Kubernetes 负载均衡
Kubernetes Ingress and Services 故障排查
Kubernetes Ingress and Services 故障排查
251 0
Kubernetes Ingress and Services 故障排查
|
存储 JSON Kubernetes
kubernetes Auditing 实战
kubernetes Auditing 实战
kubernetes Auditing 实战
|
Kubernetes 容器
Kubernetes【升级】 CKS 2021【11】---Cluster Hardening - Upgrade Kubernetes
Kubernetes【升级】 CKS 2021【11】---Cluster Hardening - Upgrade Kubernetes
Kubernetes【升级】 CKS 2021【11】---Cluster Hardening - Upgrade Kubernetes
|
Kubernetes 容器
Kubernetes CKS 2021 Course【15】---Microservice Vulnerabilities - mTLS
Kubernetes CKS 2021 Course【15】---Microservice Vulnerabilities - mTLS
Kubernetes CKS 2021 Course【15】---Microservice Vulnerabilities - mTLS
|
Kubernetes 容器
Kubernetes CKS 2021【4】---Cluster Setup - Secure Ingress
Kubernetes CKS 2021【4】---Cluster Setup - Secure Ingress
Kubernetes CKS 2021【4】---Cluster Setup - Secure Ingress
|
Kubernetes 安全 API
Kubernetes Pod Security Policies详解
Kubernetes Pod Security Policies详解
Kubernetes Pod Security Policies详解
|
数据采集 Prometheus 监控
ISTIO telemetry V2 介绍
### 背景 ISTIO 早期版本(1.4以前)的架构非常优雅, 模块之间解耦清晰,职责分明。 但现在看来有一定理想化,所有流量通过Mixer,通过Mixer 统一采集和上报所有的遥测数据和服务间访问鉴权,导致一旦规模上来,Mixer 非常容易成为性能瓶颈。 ![image.png](https://ata2-img.cn-hangzhou.oss-pub.aliyun-inc.com/920
1618 0