Overview

Full name
docker.io/istio/tcp-echo-server
Registry
docker.io
Namespace
istio
Repository
tcp-echo-server
Cached tags
4
Last synced
07/06/2026, 04:38 AM

Introduction

Istio tcp-echo-server 测试镜像,TCP 端口回显客户端发送内容,服务网格 mTLS 与路由规则验证专用探针。

Details

istio/tcp-echo-server 运行简单 TCP echo 服务,接收连接并回显 payload,Istio 官方示例用于验证 VirtualService 与 mTLS。定位为无状态 TCP 测试服务,K8s Deployment 临时排障或 Istio 教程环境;生产无业务用途。

快速启动

docker run -d --name tcp-echo \
  -p 9000:9000 \
  docker.io/istio/tcp-echo-server:latest

推荐实践

docker run -d --name tcp-echo \
  --restart unless-stopped \
  -p 9000:9000 \
  -e TCP_PORT=9000 \
  docker.io/istio/tcp-echo-server:1.0

核心参数说明

  • -p 9000:9000 — TCP echo 端口
  • -e TCP_PORT — 监听端口配置
  • 用途 — Istio 网格测试
  • 无持久化 — 纯探针服务

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: tcp-echo
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tcp-echo
  template:
    metadata:
      labels:
        app: tcp-echo
    spec:
      containers:
        - name: tcp-echo
          image: docker.io/istio/tcp-echo-server:1.0
          ports:
            - containerPort: 9000
---
apiVersion: v1
kind: Service
metadata:
  name: tcp-echo
spec:
  selector:
    app: tcp-echo
  ports:
    - port: 9000
      targetPort: 9000

Istio VirtualService 路由测试;排障完成后删除。

Latest tags (20)

View all 4 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/istio/tcp-echo-server
:latest
linux/arm64linux/amd64
2024/03/16 05:440.8 MBsha256:9cfe2aa15c29
docker.io/istio/tcp-echo-server
:1.3
linux/amd64linux/arm64
2024/03/16 05:440.8 MBsha256:639ff0b57731
docker.io/istio/tcp-echo-server
:1.2
linux/amd64
2020/03/03 09:231.4 MBsha256:9cb620071d40
docker.io/istio/tcp-echo-server
:1.1
linux/amd64
2018/11/09 03:291.4 MBsha256:6c1fd757b45b