github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/integration/kubernetes/runtimeclass_workloads/deployment-expose-ip.yaml (about)

     1  #
     2  # Copyright (c) 2019 Intel Corporation
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  apiVersion: apps/v1
     7  kind: Deployment
     8  metadata:
     9    name: hello-world
    10  spec:
    11    selector:
    12      matchLabels:
    13        app: hello-world
    14    replicas: 1
    15    template:
    16      metadata:
    17        labels:
    18          app: hello-world
    19          run: load-balancer-example
    20      spec:
    21        terminationGracePeriodSeconds: 0
    22        runtimeClassName: kata
    23        containers:
    24        - name: hello-world
    25          image: ${agnhost_image}
    26          args:
    27          - netexec
    28          ports:
    29          - containerPort: 8080