istio.io/istio@v0.0.0-20240520182934-d79c90f27776/cni/pkg/nodeagent/testdata/localhost.yaml (about) 1 # This shows an example local config for ztunnel that adds a workload for localhost. 2 # This allows local testing by sending requests through the local ztunnel to other servers running on localhost. 3 workloads: 4 - uid: cluster1//v1/Pod/default/local 5 name: local 6 namespace: default 7 serviceAccount: default 8 workloadIps: ["127.0.0.1"] 9 protocol: HBONE 10 node: local 11 network: "" 12 services: 13 "default/example.com": 14 80: 8080 15 "default/example2.com": 16 80: 8080 17 # Define another local address, but this one uses TCP. This allows testing HBONE and TCP with one config. 18 - uid: cluster1//v1/Pod/default/local-tcp 19 name: local-tcp 20 namespace: default 21 serviceAccount: default 22 workloadIps: ["127.0.0.2"] 23 protocol: TCP 24 node: local 25 network: "" 26 services: 27 "default/example.com": 28 80: 8080 29 "default/example2.com": 30 80: 8080 31 policies: 32 - action: Allow 33 rules: 34 - - - not_destination_ports: 35 - 9999 36 name: deny-9999 37 namespace: default 38 scope: Namespace 39 services: 40 - name: local 41 namespace: default 42 hostname: example.com 43 vips: 44 - /127.10.0.1 45 ports: 46 80: 8080 47 - name: remote 48 namespace: default 49 hostname: example2.com 50 vips: 51 - remote/127.10.0.2 52 ports: 53 80: 8080