apiVersion: v1 kind: Pod metadata: name: client namespace: istio-vt-t15 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: portlevel-echo namespace: istio-vt-t15 labels: app: portlevel-echo version: v1 spec: replicas: 1 selector: matchLabels: app: portlevel-echo version: v1 template: metadata: labels: app: portlevel-echo version: v1 annotations: sidecar.istio.io/inject: "true" spec: containers: - name: echo image: mendhak/http-https-echo:37 ports: - containerPort: 8080 - containerPort: 8443 --- apiVersion: v1 kind: Service metadata: name: portlevel-echo namespace: istio-vt-t15 spec: selector: app: portlevel-echo ports: - name: http port: 80 targetPort: 8080 - name: https port: 443 targetPort: 8443 --- apiVersion: networking.istio.io/v1 kind: DestinationRule metadata: name: portlevel-echo-dr namespace: istio-vt-t15 spec: host: portlevel-echo.istio-vt-t15.svc.homelab.local subsets: - name: v1 labels: version: v1 trafficPolicy: connectionPool: tcp: maxConnections: 55 portLevelSettings: - port: number: 443 tls: mode: DISABLE --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: portlevel-echo-vs namespace: istio-vt-t15 spec: hosts: - portlevel-echo.istio-vt-t15.svc.homelab.local http: - route: - destination: host: portlevel-echo.istio-vt-t15.svc.homelab.local subset: v1 port: number: 80 - match: - port: 443 route: - destination: host: portlevel-echo.istio-vt-t15.svc.homelab.local subset: v1 port: number: 443