Skip to content
Permalink
Browse files

Add debian-vm example

  • Loading branch information...
ivan4th committed Feb 28, 2019
1 parent 07b2551 commit 042367cb398b491bd10bc642d7ac9307d0c4f715
Showing with 28 additions and 0 deletions.
  1. +28 −0 examples/debian-vm.yaml
@@ -0,0 +1,28 @@
apiVersion: v1
kind: Pod
metadata:
name: debian-vm
annotations:
kubernetes.io/target-runtime: virtlet.cloud
VirtletSSHKeys: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaJEcFDXEK2ZbX0ZLS1EIYFZRbDAcRfuVjpstSc0De8+sV1aiu+dePxdkuDRwqFtCyk6dEZkssjOkBXtri00MECLkir6FcH3kKOJtbJ6vy3uaJc9w1ERo+wyl6SkAh/+JTJkp7QRXj8oylW5E20LsbnA/dIwWzAF51PPwF7A7FtNg9DnwPqMkxFo1Th/buOMKbP5ZA1mmNNtmzbMpMfJATvVyiv3ccsSJKOiyQr6UG+j7sc/7jMVz5Xk34Vd0l8GwcB0334MchHckmqDB142h/NCWTr8oLakDNvkfC1YneAfAO41hDkUbxPtVBG5M/o7P4fxoqiHEX+ZLfRxDtHB53 me@localhost
# set root volume size
VirtletRootVolumeSize: 4Gi
# Debian image doesn't understand Virtlet's Cloud-Init network config currently
VirtletForceDHCPNetworkConfig: "true"
spec:
nodeSelector:
extraRuntime: virtlet

# This is the number of seconds Virtlet gives the VM to shut down cleanly.
# The default value of 30 seconds is ok for containers but probably too
# low for VM, so overriding it here is strongly advised.
terminationGracePeriodSeconds: 120
containers:
- name: debian-vm
# We use an 'archive' image so as to have a stable URL
image: virtlet.cloud/cdimage.debian.org/cdimage/openstack/archive/9.8.0/debian-9.8.0-openstack-amd64.qcow2
imagePullPolicy: IfNotPresent
# tty and stdin required for `kubectl attach -t` to work
tty: true
stdin: true

0 comments on commit 042367c

Please sign in to comment.
You can’t perform that action at this time.