containers:
- image: docker.io/istio/examples-bookinfo-productpage-v1:1.15.0 # 应用镜像
  name: productpage
  ports:
  - containerPort: 9080
- args:
  - proxy
  - sidecar
  - --domain
  - $(POD_NAMESPACE).svc.cluster.local
  - --configPath
  - /etc/istio/proxy
  - --binaryPath
  - /usr/local/bin/envoy
  - --serviceCluster
  - productpage.$(POD_NAMESPACE)
  - --drainDuration
  - 45s
  - --parentShutdownDuration
  - 1m0s
  - --discoveryAddress
  - istiod.istio-system.svc:15012
  - --zipkinAddress
  - zipkin.istio-system:9411
  - --proxyLogLevel=warning
  - --proxyComponentLogLevel=misc:error
  - --connectTimeout
  - 10s
  - --proxyAdminPort
  - "15000"
  - --concurrency
  - "2"
  - --controlPlaneAuthPolicy
  - NONE
  - --dnsRefreshRate
  - 300s
  - --statusPort
  - "15020"
  - --trust-domain=cluster.local
  - --controlPlaneBootstrap=false
  image: docker.io/istio/proxyv2:1.5.1 # sidecar proxy
  name: istio-proxy
  ports:
  - containerPort: 15090
    name: http-envoy-prom
    protocol: TCP
initContainers:
- command:
  - istio-iptables
  - -p
  - "15001"
  - -z
  - "15006"
  - -u
  - "1337"
  - -m
  - REDIRECT
  - -i
  - '*'
  - -x
  - ""
  - -b
  - '*'
  - -d
  - 15090,15020
  image: docker.io/istio/proxyv2:1.5.1 # init 容器
  name: istio-init
