镜像概览
- 完整引用
docker.io/istio/examples-helloworld-v2- Registry
- docker.io
- 命名空间
- istio
- 仓库
- examples-helloworld-v2
- 已缓存 Tag 数
- 2
- 最近同步
- 07/05/2026, 03:25 PM
- 相关主题
简介
Istio 官方 HelloWorld v2 示例镜像,Service Mesh 金丝雀发布对比用微服务,流量治理与版本路由实验样例应用。
详细介绍
istio/examples-helloworld-v2 是 Istio 文档示例微服务 v2 版本,与 v1 配合演示金丝雀发布与流量镜像。定位为 Service Mesh 演示/测试服务,返回 v2 版本标识;VirtualService 权重路由、故障注入与 A/B 测试实验的标准对比应用。
快速启动
docker run -d --name helloworld-v2 \
-p 5000:5000 \
docker.io/istio/examples-helloworld-v2:latest
推荐实践
docker run -d --name helloworld-v2 \
--restart unless-stopped \
-p 5000:5000 \
-e SERVICE_VERSION=v2 \
docker.io/istio/examples-helloworld-v2:1.0
核心参数说明
-p 5000:5000— HTTP 服务端口SERVICE_VERSION— 响应中 v2 标识- 配对 — helloworld-v1 流量对比
- 场景 — Istio 金丝雀实验
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld-v2
spec:
replicas: 2
selector:
matchLabels:
app: helloworld
version: v2
template:
metadata:
labels:
app: helloworld
version: v2
spec:
containers:
- name: helloworld
image: docker.io/istio/examples-helloworld-v2:1.0
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: helloworld
spec:
selector:
app: helloworld
ports:
- port: 5000
targetPort: 5000
VirtualService 按权重分配 v1/v2 流量。
最新 Tag(20 条)
查看全部 2 个 Tag →| Tag | 架构 | 推送时间 | 大小 | Digest | 同步 | 期望 | 操作 |
|---|---|---|---|---|---|---|---|
docker.io/istio/examples-helloworld-v2 :latest | linux/amd64linux/arm64 | 2024/03/16 05:44 | 63.1 MB | sha256:16e4201dbc4d… | |||
docker.io/istio/examples-helloworld-v2 :1.0 | linux/amd64linux/arm64 | 2024/03/16 05:44 | 63.1 MB | sha256:16e4201dbc4d… |