istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/tcp-echo/tcp-echo.yaml (about) 1 # Copyright 2018 Istio Authors 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 ################################################################################ 16 # tcp-echo service 17 ################################################################################ 18 apiVersion: v1 19 kind: Service 20 metadata: 21 name: tcp-echo 22 labels: 23 app: tcp-echo 24 service: tcp-echo 25 spec: 26 ports: 27 - name: tcp 28 port: 9000 29 - name: tcp-other 30 port: 9001 31 # Port 9002 is omitted intentionally for testing the pass through filter chain. 32 selector: 33 app: tcp-echo 34 --- 35 apiVersion: apps/v1 36 kind: Deployment 37 metadata: 38 name: tcp-echo 39 spec: 40 replicas: 1 41 selector: 42 matchLabels: 43 app: tcp-echo 44 version: v1 45 template: 46 metadata: 47 labels: 48 app: tcp-echo 49 version: v1 50 spec: 51 containers: 52 - name: tcp-echo 53 image: docker.io/istio/tcp-echo-server:1.3 54 imagePullPolicy: IfNotPresent 55 args: [ "9000,9001,9002", "hello" ] 56 ports: 57 - containerPort: 9000 58 - containerPort: 9001