1
+ {
2
+ "apiVersion": "kubevirt.io/v1",
3
+ "kind": "VirtualMachine",
4
+ "metadata": {
5
+ "annotations": {
6
+ "description": "VM example",
7
+ "kubemacpool.io/transaction-timestamp": "2022-03-02T11:44:54.104172968Z",
8
+ "kubevirt.io/latest-observed-api-version": "v1",
9
+ "kubevirt.io/storage-observed-api-version": "v1alpha3",
10
+ "name.os.template.kubevirt.io/fedora31": "Fedora 31"
11
+ },
12
+ "creationTimestamp": "2022-03-02T11:44:54Z",
13
+ "generation": 1,
14
+ "labels": {
15
+ "app": "vm-example",
16
+ "os.template.kubevirt.io/fedora31": "true",
17
+ "workload.template.kubevirt.io/server": "true"
18
+ },
19
+ "managedFields": [
20
+ {
21
+ "apiVersion": "kubevirt.io/v1alpha3",
22
+ "fieldsType": "FieldsV1",
23
+ "fieldsV1": {
24
+ "f:metadata": {
25
+ "f:annotations": {
26
+ "f:kubevirt.io/latest-observed-api-version": {},
27
+ "f:kubevirt.io/storage-observed-api-version": {}
28
+ }
29
+ }
30
+ },
31
+ "manager": "Go-http-client",
32
+ "operation": "Update",
33
+ "time": "2022-03-02T11:44:54Z"
34
+ },
35
+ {
36
+ "apiVersion": "kubevirt.io/v1alpha3",
37
+ "fieldsType": "FieldsV1",
38
+ "fieldsV1": {
39
+ "f:status": {
40
+ ".": {},
41
+ "f:conditions": {},
42
+ "f:printableStatus": {},
43
+ "f:volumeSnapshotStatuses": {}
44
+ }
45
+ },
46
+ "manager": "Go-http-client",
47
+ "operation": "Update",
48
+ "subresource": "status",
49
+ "time": "2022-03-02T11:44:54Z"
50
+ },
51
+ {
52
+ "apiVersion": "kubevirt.io/v1",
53
+ "fieldsType": "FieldsV1",
54
+ "fieldsV1": {
55
+ "f:metadata": {
56
+ "f:annotations": {
57
+ ".": {},
58
+ "f:description": {},
59
+ "f:name.os.template.kubevirt.io/fedora31": {}
60
+ },
61
+ "f:labels": {
62
+ ".": {},
63
+ "f:app": {},
64
+ "f:os.template.kubevirt.io/fedora31": {},
65
+ "f:workload.template.kubevirt.io/server": {}
66
+ }
67
+ },
68
+ "f:spec": {
69
+ ".": {},
70
+ "f:running": {},
71
+ "f:template": {
72
+ ".": {},
73
+ "f:metadata": {
74
+ ".": {},
75
+ "f:labels": {
76
+ ".": {},
77
+ "f:kubevirt.io/domain": {},
78
+ "f:os.template.kubevirt.io/fedora31": {},
79
+ "f:vm.kubevirt.io/name": {},
80
+ "f:workload.template.kubevirt.io/server": {}
81
+ }
82
+ },
83
+ "f:spec": {
84
+ ".": {},
85
+ "f:domain": {
86
+ ".": {},
87
+ "f:cpu": {
88
+ ".": {},
89
+ "f:cores": {},
90
+ "f:sockets": {},
91
+ "f:threads": {}
92
+ },
93
+ "f:devices": {
94
+ ".": {},
95
+ "f:disks": {},
96
+ "f:interfaces": {},
97
+ "f:networkInterfaceMultiqueue": {},
98
+ "f:rng": {}
99
+ },
100
+ "f:resources": {
101
+ ".": {},
102
+ "f:requests": {
103
+ ".": {},
104
+ "f:memory": {}
105
+ }
106
+ }
107
+ },
108
+ "f:hostname": {},
109
+ "f:networks": {},
110
+ "f:terminationGracePeriodSeconds": {},
111
+ "f:volumes": {}
112
+ }
113
+ }
114
+ }
115
+ },
116
+ "manager": "Mozilla",
117
+ "operation": "Update",
118
+ "time": "2022-03-02T11:44:54Z"
119
+ }
120
+ ],
121
+ "name": "vm-example",
122
+ "namespace": "default",
123
+ "resourceVersion": "2533278",
124
+ "uid": "5e1c9ed5-1a1f-418e-b2e7-139c6a923b6e"
125
+ },
126
+ "spec": {
127
+ "running": false,
128
+ "template": {
129
+ "metadata": {
130
+ "creationTimestamp": null,
131
+ "labels": {
132
+ "kubevirt.io/domain": "vm-example",
133
+ "os.template.kubevirt.io/fedora31": "true",
134
+ "vm.kubevirt.io/name": "vm-example",
135
+ "workload.template.kubevirt.io/server": "true"
136
+ }
137
+ },
138
+ "spec": {
139
+ "domain": {
140
+ "cpu": {
141
+ "cores": 1,
142
+ "sockets": 1,
143
+ "threads": 1
144
+ },
145
+ "devices": {
146
+ "disks": [
147
+ {
148
+ "bootOrder": 1,
149
+ "disk": {
150
+ "bus": "virtio"
151
+ },
152
+ "name": "containerdisk"
153
+ },
154
+ {
155
+ "disk": {
156
+ "bus": "virtio"
157
+ },
158
+ "name": "cloudinitdisk"
159
+ }
160
+ ],
161
+ "interfaces": [
162
+ {
163
+ "macAddress": "02:94:7e:00:00:00",
164
+ "masquerade": {},
165
+ "name": "default"
166
+ }
167
+ ],
168
+ "networkInterfaceMultiqueue": true,
169
+ "rng": {}
170
+ },
171
+ "machine": {
172
+ "type": "q35"
173
+ },
174
+ "resources": {
175
+ "requests": {
176
+ "memory": "1G"
177
+ }
178
+ }
179
+ },
180
+ "hostname": "vm-example",
181
+ "networks": [
182
+ {
183
+ "name": "default",
184
+ "pod": {}
185
+ }
186
+ ],
187
+ "terminationGracePeriodSeconds": 0,
188
+ "volumes": [
189
+ {
190
+ "containerDisk": {
191
+ "image": "quay.io/kubevirt/fedora-cloud-container-disk-demo:latest"
192
+ },
193
+ "name": "containerdisk"
194
+ },
195
+ {
196
+ "cloudInitNoCloud": {
197
+ "userData": "#cloud-config\npassword: fedora\nchpasswd: { expire: False }"
198
+ },
199
+ "name": "cloudinitdisk"
200
+ }
201
+ ]
202
+ }
203
+ }
204
+ },
205
+ "status": {
206
+ "conditions": [
207
+ {
208
+ "lastProbeTime": "2022-03-02T11:44:54Z",
209
+ "lastTransitionTime": "2022-03-02T11:44:54Z",
210
+ "message": "VMI does not exist",
211
+ "reason": "VMINotExists",
212
+ "status": "False",
213
+ "type": "Ready"
214
+ }
215
+ ],
216
+ "printableStatus": "Stopped",
217
+ "volumeSnapshotStatuses": [
218
+ {
219
+ "enabled": false,
220
+ "name": "containerdisk",
221
+ "reason": "Snapshot is not supported for this volumeSource type [containerdisk]"
222
+ },
223
+ {
224
+ "enabled": false,
225
+ "name": "cloudinitdisk",
226
+ "reason": "Snapshot is not supported for this volumeSource type [cloudinitdisk]"
227
+ }
228
+ ]
229
+ }
230
+ }
0 commit comments