github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/examples/ubuntu-vm-with-volume.yaml (about)

     1  # This example is ubuntu-vm.yaml one extended with example volume for docker
     2  # which makes it more usable as a test environment
     3  apiVersion: v1
     4  kind: Pod
     5  metadata:
     6    name: ubuntu-vm-with-volume
     7    annotations:
     8      kubernetes.io/target-runtime: virtlet.cloud
     9      VirtletSSHKeys: |
    10        ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaJEcFDXEK2ZbX0ZLS1EIYFZRbDAcRfuVjpstSc0De8+sV1aiu+dePxdkuDRwqFtCyk6dEZkssjOkBXtri00MECLkir6FcH3kKOJtbJ6vy3uaJc9w1ERo+wyl6SkAh/+JTJkp7QRXj8oylW5E20LsbnA/dIwWzAF51PPwF7A7FtNg9DnwPqMkxFo1Th/buOMKbP5ZA1mmNNtmzbMpMfJATvVyiv3ccsSJKOiyQr6UG+j7sc/7jMVz5Xk34Vd0l8GwcB0334MchHckmqDB142h/NCWTr8oLakDNvkfC1YneAfAO41hDkUbxPtVBG5M/o7P4fxoqiHEX+ZLfRxDtHB53 me@localhost
    11  spec:
    12    nodeSelector:
    13      extraRuntime: virtlet
    14  
    15    # This is the number of seconds Virtlet gives the VM to shut down cleanly.
    16    # The default value of 30 seconds is ok for containers but probably too
    17    # low for VM, so overriding it here is strongly advised.
    18    terminationGracePeriodSeconds: 120
    19    containers:
    20    - name: ubuntu-vm
    21      image: virtlet.cloud/cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
    22      imagePullPolicy: IfNotPresent
    23      # tty and stdin required for `kubectl attach -t` to work
    24      tty: true
    25      stdin: true
    26      volumeMounts:
    27      - name: docker
    28        mountPath: /var/lib/docker
    29    volumes:
    30    - name: docker
    31      flexVolume:
    32        driver: "virtlet/flexvolume_driver"
    33        options:
    34          type: qcow2
    35          capacity: 2048MB