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

     1  #
     2  # Copyright (c) 2019 Intel Corporation
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  apiVersion: v1
     7  kind: Pod
     8  metadata:
     9    name: footubuntu
    10  spec:
    11    terminationGracePeriodSeconds: 0
    12    runtimeClassName: kata
    13    volumes:
    14    - name: runv
    15      emptyDir:
    16        medium: "Memory"
    17    - name: runlockv
    18      emptyDir:
    19        medium: "Memory"
    20    - name: tmpv
    21      emptyDir:
    22        medium: "Memory"
    23    - name: fakecgroup
    24      hostPath:
    25        path: /sys/fs/cgroup
    26    - name: ssh-dir
    27      emptyDir:
    28        medium: "Memory"
    29    - name: ssh-config-map
    30      configMap:
    31        name: ssh-config-map
    32        defaultMode: 384
    33    containers:
    34    - name: vmcontainer
    35      image: quay.io/footloose/ubuntu18.04:latest
    36      command: ["/sbin/init"]
    37      volumeMounts:
    38      - name: runv
    39        mountPath: /run
    40      - name: runlockv
    41        mountPath: /run/lock
    42      - name: tmpv
    43        mountPath: /tmp
    44      - name: fakecgroup
    45        readOnly: true
    46        mountPath: /sys/fs/cgroup
    47      - name: ssh-dir
    48        mountPath: /root/.ssh
    49      - name: ssh-config-map
    50        mountPath: /root/.ssh/authorized_keys
    51        subPath: authorized_keys
    52    # These containers are run during pod initialization
    53    initContainers:
    54    - name: install
    55      image: quay.io/prometheus/busybox:latest
    56      command: ["sh", "-c", "chmod 700 /root/.ssh"]
    57      volumeMounts:
    58      - name: ssh-dir
    59        mountPath: /root/.ssh