istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/test/framework/components/echo/kube/testdata/healthcheck-rewrite.yaml (about) 1 2 apiVersion: v1 3 kind: Service 4 metadata: 5 name: healthcheck 6 labels: 7 app: healthcheck 8 spec: 9 ports: 10 - name: grpc 11 port: 7070 12 targetPort: 7070 13 - name: http-8080 14 port: 8080 15 targetPort: 8080 16 selector: 17 app: healthcheck 18 --- 19 apiVersion: apps/v1 20 kind: Deployment 21 metadata: 22 name: healthcheck-v1 23 spec: 24 replicas: 1 25 selector: 26 matchLabels: 27 app: healthcheck 28 version: v1 29 template: 30 metadata: 31 labels: 32 app: healthcheck 33 version: v1 34 test.istio.io/class: standard 35 annotations: 36 prometheus.io/scrape: "true" 37 prometheus.io/port: "15014" 38 sidecar.istio.io/rewriteAppHTTPProbers: "true" 39 spec: 40 imagePullSecrets: 41 - name: myregistrykey 42 containers: 43 - name: istio-proxy 44 image: auto 45 imagePullPolicy: Always 46 securityContext: # to allow core dumps 47 readOnlyRootFilesystem: false 48 - name: app 49 image: testing.hub/app:latest 50 imagePullPolicy: Always 51 args: 52 - --metrics=15014 53 - --cluster=cluster-0 54 - --grpc=7070 55 - --port=8080 56 - --port=3333 57 - --version=v1 58 - --istio-version= 59 - --crt=/cert.crt 60 - --key=/cert.key 61 ports: 62 - containerPort: 7070 63 - containerPort: 8080 64 - containerPort: 3333 65 name: tcp-health-port 66 env: 67 - name: INSTANCE_IP 68 valueFrom: 69 fieldRef: 70 fieldPath: status.podIP 71 - name: NAMESPACE 72 valueFrom: 73 fieldRef: 74 fieldPath: metadata.namespace 75 readinessProbe: 76 httpGet: 77 path: / 78 port: 8080 79 initialDelaySeconds: 1 80 periodSeconds: 2 81 failureThreshold: 10 82 livenessProbe: 83 tcpSocket: 84 port: tcp-health-port 85 initialDelaySeconds: 10 86 periodSeconds: 10 87 failureThreshold: 10 88 startupProbe: 89 tcpSocket: 90 port: tcp-health-port 91 periodSeconds: 1 92 failureThreshold: 10 93 ---