apiVersion: v1 kind: Pod metadata: name: client namespace: istio-vt-t83 labels: app: client annotations: sidecar.istio.io/inject: "true" spec: containers: - name: curl image: curlimages/curl:8.14.1 command: ["sleep", "infinity"] --- apiVersion: apps/v1 kind: Deployment metadata: name: readiness-indep-echo namespace: istio-vt-t83 labels: app: readiness-indep-echo spec: replicas: 1 selector: matchLabels: app: readiness-indep-echo template: metadata: labels: app: readiness-indep-echo annotations: sidecar.istio.io/inject: "true" spec: containers: - name: nginx image: nginx:1.27-alpine ports: - containerPort: 8080 command: - sh - -c - | echo 'server { listen 8080; location /health { return 503; } location / { return 200 "ok"; } }' > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;' readinessProbe: httpGet: path: /health port: 8080 periodSeconds: 2 failureThreshold: 1