istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/bookinfo/platform/kube/bookinfo-reviews-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  ##################################################################################################
    16  # Reviews service v2
    17  ##################################################################################################
    18  apiVersion: apps/v1
    19  kind: Deployment
    20  metadata:
    21    name: reviews-v2
    22    labels:
    23      app: reviews
    24      version: v2
    25  spec:
    26    replicas: 1
    27    selector:
    28      matchLabels:
    29        app: reviews
    30        version: v2
    31    template:
    32      metadata:
    33        labels:
    34          app: reviews
    35          version: v2
    36      spec:
    37        containers:
    38        - name: reviews
    39          image: docker.io/istio/examples-bookinfo-reviews-v2:1.19.1
    40          imagePullPolicy: IfNotPresent
    41          env:
    42          - name: LOG_DIR
    43            value: "/tmp/logs"
    44          ports:
    45          - containerPort: 9080
    46          volumeMounts:
    47          - name: tmp
    48            mountPath: /tmp
    49          - name: wlp-output
    50            mountPath: /opt/ibm/wlp/output
    51        volumes:
    52        - name: wlp-output
    53          emptyDir: {}
    54        - name: tmp
    55          emptyDir: {}
    56  ---