istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/helloworld/helloworld.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: helloworld
     5    labels:
     6      app: helloworld
     7      service: helloworld
     8  spec:
     9    ports:
    10    - port: 5000
    11      name: http
    12    selector:
    13      app: helloworld
    14  ---
    15  apiVersion: apps/v1
    16  kind: Deployment
    17  metadata:
    18    name: helloworld-v1
    19    labels:
    20      app: helloworld
    21      version: v1
    22  spec:
    23    replicas: 1
    24    selector:
    25      matchLabels:
    26        app: helloworld
    27        version: v1
    28    template:
    29      metadata:
    30        labels:
    31          app: helloworld
    32          version: v1
    33      spec:
    34        containers:
    35        - name: helloworld
    36          image: docker.io/istio/examples-helloworld-v1:1.0
    37          resources:
    38            requests:
    39              cpu: "100m"
    40          imagePullPolicy: IfNotPresent #Always
    41          ports:
    42          - containerPort: 5000
    43  ---
    44  apiVersion: apps/v1
    45  kind: Deployment
    46  metadata:
    47    name: helloworld-v2
    48    labels:
    49      app: helloworld
    50      version: v2
    51  spec:
    52    replicas: 1
    53    selector:
    54      matchLabels:
    55        app: helloworld
    56        version: v2
    57    template:
    58      metadata:
    59        labels:
    60          app: helloworld
    61          version: v2
    62      spec:
    63        containers:
    64        - name: helloworld
    65          image: docker.io/istio/examples-helloworld-v2:1.0
    66          resources:
    67            requests:
    68              cpu: "100m"
    69          imagePullPolicy: IfNotPresent #Always
    70          ports:
    71          - containerPort: 5000