istio

Форк
0
/
tcp-echo-dual-stack.yaml 
62 строки · 1.6 Кб
1
# Copyright 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
  ipFamilyPolicy: RequireDualStack
27
  ipFamilies:
28
  - IPv6
29
  - IPv4
30
  ports:
31
  - name: tcp
32
    port: 9000
33
  - name: tcp-other
34
    port: 9001
35
  # Port 9002 is omitted intentionally for testing the pass through filter chain.
36
  selector:
37
    app: tcp-echo
38
---
39
apiVersion: apps/v1
40
kind: Deployment
41
metadata:
42
  name: tcp-echo
43
spec:
44
  replicas: 1
45
  selector:
46
    matchLabels:
47
      app: tcp-echo
48
      version: v1
49
  template:
50
    metadata:
51
      labels:
52
        app: tcp-echo
53
        version: v1
54
    spec:
55
      containers:
56
      - name: tcp-echo
57
        image: docker.io/istio/tcp-echo-server:1.3
58
        imagePullPolicy: IfNotPresent
59
        args: [ "9000,9001,9002", "hello" ]
60
        ports:
61
        - containerPort: 9000
62
        - containerPort: 9001
63

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.