istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/bookinfo/platform/kube/bookinfo-details.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  # Details service
    17  ##################################################################################################
    18  apiVersion: v1
    19  kind: Service
    20  metadata:
    21    name: details
    22    labels:
    23      app: details
    24      service: details
    25  spec:
    26    ports:
    27    - port: 9080
    28      name: http
    29    selector:
    30      app: details
    31  ---
    32  apiVersion: apps/v1
    33  kind: Deployment
    34  metadata:
    35    name: details-v1
    36    labels:
    37      app: details
    38      version: v1
    39  spec:
    40    replicas: 1
    41    selector:
    42      matchLabels:
    43        app: details
    44        version: v1
    45    template:
    46      metadata:
    47        labels:
    48          app: details
    49          version: v1
    50      spec:
    51        containers:
    52        - name: details
    53          image: docker.io/istio/examples-bookinfo-details-v1:1.19.1
    54          imagePullPolicy: IfNotPresent
    55          ports:
    56          - containerPort: 9080
    57  ---