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

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