github.com/looshlee/cilium@v1.6.12/test/k8sT/manifests/bookinfo-v2.yaml (about)

     1  # Copyright 2017 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  # Ratings service
    17  ##################################################################################################
    18  apiVersion: v1
    19  kind: Service
    20  metadata:
    21    name: ratings
    22    labels:
    23      app: ratings
    24  spec:
    25    ports:
    26    - port: 9080
    27      name: http
    28    selector:
    29      app: ratings
    30  ---
    31  apiVersion: apps/v1
    32  kind: Deployment
    33  metadata:
    34    name: ratings-v1
    35  spec:
    36    selector:
    37      matchLabels:
    38        app: ratings
    39        version: v1
    40        zgroup: bookinfo
    41    replicas: 1
    42    template:
    43      metadata:
    44        labels:
    45          app: ratings
    46          version: v1
    47          zgroup: bookinfo
    48      spec:
    49        terminationGracePeriodSeconds: 0
    50        containers:
    51        - name: ratings
    52          image: docker.io/istio/examples-bookinfo-ratings-v1:1.6.0
    53          imagePullPolicy: IfNotPresent
    54          ports:
    55          - containerPort: 9080
    56  ---
    57  ##################################################################################################
    58  # Reviews service v2
    59  ##################################################################################################
    60  apiVersion: apps/v1
    61  kind: Deployment
    62  metadata:
    63    name: reviews-v2
    64  spec:
    65    selector:
    66      matchLabels:
    67        app: reviews
    68        version: v2
    69        zgroup: bookinfo
    70    replicas: 1
    71    template:
    72      metadata:
    73        labels:
    74          app: reviews
    75          version: v2
    76          zgroup: bookinfo
    77      spec:
    78        terminationGracePeriodSeconds: 0
    79        containers:
    80        - name: reviews
    81          image: docker.io/istio/examples-bookinfo-reviews-v2:1.6.0
    82          imagePullPolicy: IfNotPresent
    83          ports:
    84          - containerPort: 9080
    85  ---