github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/examples/ubuntu-multi-cni.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 name: ubuntu-multi-cni 5 annotations: 6 multi-ip-preferences: | 7 { 8 "multi_entry": 0, 9 "ips": { 10 "": { 11 "ip": "", 12 "interface": "" 13 } 14 } 15 } 16 cni: "calico,flannel" 17 kubernetes.io/target-runtime: virtlet.cloud 18 VirtletCloudInitUserData: | 19 ssh_pwauth: True 20 users: 21 - name: testuser 22 gecos: User 23 primary-group: testuser 24 groups: users 25 lock_passwd: false 26 shell: /bin/bash 27 # the password is "testuser" 28 passwd: "$6$rounds=4096$wPs4Hz4tfs$a8ssMnlvH.3GX88yxXKF2cKMlVULsnydoOKgkuStTErTq2dzKZiIx9R/pPWWh5JLxzoZEx7lsSX5T2jW5WISi1" 29 sudo: ALL=(ALL) NOPASSWD:ALL 30 spec: 31 affinity: 32 nodeAffinity: 33 requiredDuringSchedulingIgnoredDuringExecution: 34 nodeSelectorTerms: 35 - matchExpressions: 36 - key: extraRuntime 37 operator: In 38 values: 39 - virtlet 40 terminationGracePeriodSeconds: 120 41 containers: 42 - name: ubuntu-vm 43 image: virtlet.cloud/cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img 44 imagePullPolicy: IfNotPresent 45 tty: true 46 stdin: true