概要

フル名
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アーキテクチャプッシュ日時サイズDigest同期期望操作
docker.io/istio/examples-helloworld-v2
:latest
linux/amd64linux/arm64
2024/03/16 05:4463.1 MBsha256:16e4201dbc4d
docker.io/istio/examples-helloworld-v2
:1.0
linux/amd64linux/arm64
2024/03/16 05:4463.1 MBsha256:16e4201dbc4d