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