Vladimir Jigulin | 4ad52a8 | 2018-08-12 05:51:30 +0400 | [diff] [blame] | 1 | # From virtlet/examples/cirros-vm.yaml |
| 2 | apiVersion: v1 |
| 3 | kind: Pod |
| 4 | metadata: |
| 5 | name: cirros-vm |
| 6 | annotations: |
| 7 | # This tells CRI Proxy that this pod belongs to Virtlet runtime |
| 8 | kubernetes.io/target-runtime: virtlet.cloud |
| 9 | # CirrOS doesn't load nocloud data from SCSI CD-ROM for some reason |
| 10 | VirtletDiskDriver: virtio |
| 11 | # inject ssh keys via cloud-init |
| 12 | VirtletSSHKeys: | |
| 13 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaJEcFDXEK2ZbX0ZLS1EIYFZRbDAcRfuVjpstSc0De8+sV1aiu+dePxdkuDRwqFtCyk6dEZkssjOkBXtri00MECLkir6FcH3kKOJtbJ6vy3uaJc9w1ERo+wyl6SkAh/+JTJkp7QRXj8oylW5E20LsbnA/dIwWzAF51PPwF7A7FtNg9DnwPqMkxFo1Th/buOMKbP5ZA1mmNNtmzbMpMfJATvVyiv3ccsSJKOiyQr6UG+j7sc/7jMVz5Xk34Vd0l8GwcB0334MchHckmqDB142h/NCWTr8oLakDNvkfC1YneAfAO41hDkUbxPtVBG5M/o7P4fxoqiHEX+ZLfRxDtHB53 me@localhost |
| 14 | spec: |
| 15 | # This nodeAffinity specification tells Kubernetes to run this |
| 16 | # pod only on the nodes that have extraRuntime=virtlet label. |
| 17 | # This label is used by Virtlet DaemonSet to select nodes |
| 18 | # that must have Virtlet runtime |
| 19 | affinity: |
| 20 | nodeAffinity: |
| 21 | requiredDuringSchedulingIgnoredDuringExecution: |
| 22 | nodeSelectorTerms: |
| 23 | - matchExpressions: |
| 24 | - key: extraRuntime |
| 25 | operator: In |
| 26 | values: |
| 27 | - virtlet |
| 28 | containers: |
| 29 | - name: cirros-vm |
| 30 | # This specifies the image to use. |
| 31 | # virtlet.cloud/ prefix is used by CRI proxy, the remaining part |
| 32 | # of the image name is prepended with https:// and used to download the image |
| 33 | image: virtlet.cloud/cirros |
| 34 | imagePullPolicy: IfNotPresent |
| 35 | # tty and stdin required for `kubectl attach -t` to work |
| 36 | tty: true |
| 37 | stdin: true |
| 38 | resources: |
| 39 | limits: |
| 40 | # This memory limit is applied to the libvirt domain definition |
| 41 | memory: 160Mi |