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

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: ubuntu-vm
     5    annotations:
     6      kubernetes.io/target-runtime: virtlet.cloud
     7      VirtletSSHKeys: |
     8        ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaJEcFDXEK2ZbX0ZLS1EIYFZRbDAcRfuVjpstSc0De8+sV1aiu+dePxdkuDRwqFtCyk6dEZkssjOkBXtri00MECLkir6FcH3kKOJtbJ6vy3uaJc9w1ERo+wyl6SkAh/+JTJkp7QRXj8oylW5E20LsbnA/dIwWzAF51PPwF7A7FtNg9DnwPqMkxFo1Th/buOMKbP5ZA1mmNNtmzbMpMfJATvVyiv3ccsSJKOiyQr6UG+j7sc/7jMVz5Xk34Vd0l8GwcB0334MchHckmqDB142h/NCWTr8oLakDNvkfC1YneAfAO41hDkUbxPtVBG5M/o7P4fxoqiHEX+ZLfRxDtHB53 me@localhost
     9      # set root volume size
    10      VirtletRootVolumeSize: 4Gi
    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