istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/bookinfo/platform/kube/bookinfo-ratings-v2.yaml (about) 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 apiVersion: v1 16 kind: ServiceAccount 17 metadata: 18 name: bookinfo-ratings-v2 19 --- 20 apiVersion: apps/v1 21 kind: Deployment 22 metadata: 23 name: ratings-v2 24 labels: 25 app: ratings 26 version: v2 27 spec: 28 replicas: 1 29 selector: 30 matchLabels: 31 app: ratings 32 version: v2 33 template: 34 metadata: 35 labels: 36 app: ratings 37 version: v2 38 spec: 39 serviceAccountName: bookinfo-ratings-v2 40 containers: 41 - name: ratings 42 image: docker.io/istio/examples-bookinfo-ratings-v2:1.19.1 43 imagePullPolicy: IfNotPresent 44 env: 45 # ratings-v2 will use mongodb as the default db backend. 46 # if you would like to use mysqldb then set DB_TYPE = 'mysql', set 47 # the rest of the parameters shown here and also create the 48 # mysqldb service using bookinfo-mysql.yaml 49 # - name: DB_TYPE #default to 50 # value: "mysql" 51 # - name: MYSQL_DB_HOST 52 # value: mysqldb 53 # - name: MYSQL_DB_PORT 54 # value: "3306" 55 # - name: MYSQL_DB_USER 56 # value: root 57 # - name: MYSQL_DB_PASSWORD 58 # value: password 59 - name: MONGO_DB_URL 60 value: mongodb://mongodb:27017/test 61 ports: 62 - containerPort: 9080 63 ---