github.com/polarismesh/polaris@v1.17.8/test/outlier/outlier.yaml (about) 1 # Tencent is pleased to support the open source community by making Polaris available. 2 # 3 # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. 4 # 5 # Licensed under the BSD 3-Clause License (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # https://opensource.org/licenses/BSD-3-Clause 10 # 11 # Unless required by applicable law or agreed to in writing, software distributed 12 # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 # specific language governing permissions and limitations under the License. 15 16 apiVersion: v1 17 kind: Service 18 metadata: 19 name: outlier-frontend 20 namespace: polaris-test 21 spec: 22 ports: 23 - port: 8080 24 name: http 25 selector: 26 app: outlier-frontend 27 --- 28 apiVersion: apps/v1 29 kind: Deployment 30 metadata: 31 name: outlier-frontend 32 namespace: polaris-test 33 labels: 34 app: outlier-frontend 35 spec: 36 replicas: 1 37 selector: 38 matchLabels: 39 app: outlier-frontend 40 template: 41 metadata: 42 labels: 43 app: outlier-frontend 44 spec: 45 containers: 46 - name: outlier-frontend 47 image: repository/outlier_frontend 48 imagePullPolicy: Always 49 ports: 50 - containerPort: 8080 51 securityContext: 52 runAsUser: 1000 53 --- 54 55 apiVersion: v1 56 kind: Service 57 metadata: 58 name: outlier-backend 59 namespace: polaris-test 60 spec: 61 ports: 62 - port: 8090 63 name: http 64 selector: 65 app: outlier-backend 66 --- 67 apiVersion: apps/v1 68 kind: Deployment 69 metadata: 70 name: outlier-backend 71 namespace: polaris-test 72 labels: 73 app: outlier-backend 74 spec: 75 replicas: 7 76 selector: 77 matchLabels: 78 app: outlier-backend 79 template: 80 metadata: 81 labels: 82 app: outlier-backend 83 spec: 84 containers: 85 - name: outlier-backend 86 image: repository/outlier_backend 87 imagePullPolicy: Always 88 ports: 89 - containerPort: 8090 90 securityContext: 91 runAsUser: 1000 92 ---