进阶:对接 Istio 实现应用灰度发布实践| 学习笔记

简介: 快速学习进阶:对接 Istio 实现应用灰度发布实践。

开发者学堂课程【4天定制混合云应用交付流水线-1024程序员节创造营公益课进阶:对接  Istio 实现应用灰度发布实践】学习笔记,与课程紧密联系,让用户快速学习知识。

课程地址:https://developer.aliyun.com/learning/course/893/detail/14270


进阶:对接 Istio 实现应用灰度发布实践

 

内容简介:

一、KubeVela addon

二、对接 Istio 实现应用灰度发布

 

一、KubeVela addon

image.png

KubeVela addon 也就是 KubeVela 的插件,插件包括很多:

插件:terraform ,

简介:提供云资源(默认已安装)

https://github.com/oam-dev/terraform-controller

插件:fluxcd ,

简介:提供 Helm、Kustomize 组件的部署功能

内置功能: kustomize、helm

插件对应开源项目: https://fluxcd.io/

插件:kruise,

简介: 提供比 Kubernetes 原生更强大的工作负载套件,

内置功能: cloneset ,

插件对应开源项目:https://openkruise.io/

插件:prometheus ,

简介:提供基于 Promethus 的基础监控功能,

插件对应开源项目: https://prometheus.io/

插件:keda ,

简介:提供基于事件驱动的工作负载自动扩缩容功能 ,

插件对应开源项目:https://keda.sh/

插件:ocm ,

简介:提供多集群功能的系统插件,

插件对应开源项目: http://open-cluster-management.io/

插件:observability ,

简介:为 KubeVela core 提供系统级别的监控,

也可以为应用提供业务级别的监控。

 

二、对接 Istio 实现应用灰度发布

$vela addon enable istio

$kubectl label namespace default istio-injection=enabled

image.png

spec:

componants:

nane:reviews

type:webservice

properties:

nage:

docker.so/stio/exanples-bookinrb-rev1eIs-v2:1.16.2port:9888volunes:
nate:wip-output
type:cnptyDir
mountPath:/opt/ibn/wlp/outputname:tnp
type:enptyDir

nountPath:/tmp

traits:

type:canary-traffic

properties:

port:

-9888

type:roliout

properties:

targetSize:2This neons to rollout two pore replicosin two botches. rolLoutBatches:

-replicas:2

productpage

type:webservice

properties:

inage:docker.1o/istio/exanples-bookinfo-productpage-v1:1.16.2port:9888

traits:

type:expose

properties:

port:

-9888

workflow:
steps:
nane:rollout-1st-batch

type:canary-rolloutproperties:just upgradeffrst botch of component

batchPartition:8

traffic:

aeightedTargets:

revision:reviews-v1

weight:98#90%shiftto new version

revision:reviews-v2

weight:16#18%shift to new versiongive user time to verify part of troffic shifting to newRevisinnase:nanuat-approval

type:suspend

name:rollout-rest

type:canary-rollout

propertles:

upgradeoll botches of componentbatchPartition:1traffic:weightedTargets:

revision; reviews-v2

weight:188#168% shift to new version

目录
打赏
0
0
0
0
214
分享
相关文章
基于虚拟服务配置的渐进式迁移实践:Istio集群至ASM集群的平滑切换
本文介绍了从Istio+k8s环境迁移到阿里云ASM+ACK环境的渐进式方法,通过配置虚拟服务和入口服务实现新老集群间的服务调用与流量转发,确保业务连续性与平滑迁移
543 132
政采云业务网关实践:使用 Higress 统一替代 APISIX/Kong/Istio Ingress
政采云基础架构团队技术专家朱海峰介绍了业务网关项目的背景和解决方案。
121 11
云原生安全:Istio在微服务架构中的安全策略与实践
【10月更文挑战第26天】随着云计算的发展,云原生架构成为企业数字化转型的关键。微服务作为其核心组件,虽具备灵活性和可扩展性,但也带来安全挑战。Istio作为开源服务网格,通过双向TLS加密、细粒度访问控制和强大的审计监控功能,有效保障微服务间的通信安全,成为云原生安全的重要工具。
81 2
Dubbo3实践: proxy mesh using Envoy & Istio
> 本示例演示了如何使用 Istio+Envoy 的 Service Mesh 部署模式开发 Dubbo3 服务。Dubbo3 服务使用 Triple 作为通信协议,通信过程经过 Envoy 数据面拦截,同时使用标准 Istio 的流量治理能力治理 Dubbo。 遵循以下步骤,可以轻松掌握如何开发符合 Service Mesh 架构的 Dubbo 服务,并将其部署到 Kubernetes 并接入
497 0