概要

フル名
docker.io/istio/examples-helloworld-v1
Registry
docker.io
名前空間
istio
リポジトリ
examples-helloworld-v1
キャッシュ Tag 数
2
最終同期
07/05/2026, 05:02 PM
関連トピック

概要

Istio 官方 HelloWorld 示例镜像,v1 版本微服务用于 Service Mesh 流量治理演示,金丝雀发布与可观测性实验样例。

詳細

istio/examples-helloworld-v1 是 Istio 文档中的示例微服务 v1 版本,返回固定版本标识供流量路由验证。定位为 Service Mesh 演示/测试服务,与 v2 版本配合演示金丝雀、镜像流量与故障注入;Istio 学习、CI 网格集成测试或 Envoy 路由规则验证。

快速启动

docker run -d --name helloworld-v1 \
  -p 5000:5000 \
  docker.io/istio/examples-helloworld-v1:latest

推荐实践

docker run -d --name helloworld-v1 \
  --restart unless-stopped \
  -p 5000:5000 \
  -e SERVICE_VERSION=v1 \
  docker.io/istio/examples-helloworld-v1:1.0

核心参数说明

  • -p 5000:5000 — HTTP 服务端口
  • SERVICE_VERSION — 响应中版本标识
  • 配对 — 与 helloworld-v2 做流量对比
  • 场景 — Istio VirtualService 测试

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: helloworld-v1
spec:
  replicas: 2
  selector:
    matchLabels:
      app: helloworld
      version: v1
  template:
    metadata:
      labels:
        app: helloworld
        version: v1
    spec:
      containers:
        - name: helloworld
          image: docker.io/istio/examples-helloworld-v1:1.0
          ports:
            - containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
  name: helloworld
spec:
  selector:
    app: helloworld
  ports:
    - port: 5000
      targetPort: 5000

配合 Istio DestinationRule 做版本路由。

Tagアーキテクチャプッシュ日時サイズDigest同期期望操作
docker.io/istio/examples-helloworld-v1
:latest
linux/arm64linux/amd64
2024/03/16 05:4461.4 MBsha256:50fc9f25931c
docker.io/istio/examples-helloworld-v1
:1.0
linux/amd64linux/arm64
2024/03/16 05:4463.1 MBsha256:174e29273de7