Skip to content

Commit 042367c

Browse files
author
Ivan Shvedunov
committed
Add debian-vm example
1 parent 07b2551 commit 042367c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

examples/debian-vm.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: debian-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+
# Debian image doesn't understand Virtlet's Cloud-Init network config currently
12+
VirtletForceDHCPNetworkConfig: "true"
13+
spec:
14+
nodeSelector:
15+
extraRuntime: virtlet
16+
17+
# This is the number of seconds Virtlet gives the VM to shut down cleanly.
18+
# The default value of 30 seconds is ok for containers but probably too
19+
# low for VM, so overriding it here is strongly advised.
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: debian-vm
23+
# We use an 'archive' image so as to have a stable URL
24+
image: virtlet.cloud/cdimage.debian.org/cdimage/openstack/archive/9.8.0/debian-9.8.0-openstack-amd64.qcow2
25+
imagePullPolicy: IfNotPresent
26+
# tty and stdin required for `kubectl attach -t` to work
27+
tty: true
28+
stdin: true

0 commit comments

Comments
 (0)