github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/tools/TestGenCommand__plain.out.yaml (about) 1 --- 2 apiVersion: apps/v1 3 kind: DaemonSet 4 metadata: 5 creationTimestamp: null 6 name: virtlet 7 namespace: kube-system 8 spec: 9 selector: 10 matchLabels: 11 runtime: virtlet 12 template: 13 metadata: 14 creationTimestamp: null 15 labels: 16 runtime: virtlet 17 name: virtlet 18 spec: 19 affinity: 20 nodeAffinity: 21 requiredDuringSchedulingIgnoredDuringExecution: 22 nodeSelectorTerms: 23 - matchExpressions: 24 - key: extraRuntime 25 operator: In 26 values: 27 - virtlet 28 containers: 29 - command: 30 - /libvirt.sh 31 image: mirantis/virtlet 32 imagePullPolicy: IfNotPresent 33 name: libvirt 34 readinessProbe: 35 exec: 36 command: 37 - /bin/sh 38 - -c 39 - socat - UNIX:/var/run/libvirt/libvirt-sock-ro </dev/null 40 resources: {} 41 securityContext: 42 privileged: true 43 volumeMounts: 44 - mountPath: /etc/libvirt/qemu 45 name: qemu 46 - mountPath: /sys/fs/cgroup 47 name: cgroup 48 - mountPath: /lib/modules 49 name: modules 50 readOnly: true 51 - mountPath: /boot 52 name: boot 53 readOnly: true 54 - mountPath: /run 55 name: run 56 - mountPath: /var/lib/virtlet 57 name: virtlet 58 - mountPath: /var/lib/libvirt 59 name: libvirt 60 - mountPath: /var/run/libvirt 61 name: libvirt-sockets 62 - mountPath: /var/log/vms 63 name: vms-log 64 - mountPath: /var/log/libvirt 65 name: libvirt-log 66 - mountPath: /dev 67 name: dev 68 - image: mirantis/virtlet 69 imagePullPolicy: IfNotPresent 70 name: virtlet 71 readinessProbe: 72 exec: 73 command: 74 - /bin/sh 75 - -c 76 - grpc_health_probe -addr UNIX:/run/virtlet.sock 77 resources: {} 78 securityContext: 79 privileged: true 80 volumeMounts: 81 - mountPath: /etc/libvirt/qemu 82 name: qemu 83 - mountPath: /run 84 name: run 85 - mountPath: /lib/modules 86 name: modules 87 readOnly: true 88 - mountPath: /boot 89 name: boot 90 readOnly: true 91 - mountPath: /dev 92 name: dev 93 - mountPath: /var/lib/virtlet 94 mountPropagation: Bidirectional 95 name: virtlet 96 - mountPath: /var/lib/libvirt 97 name: libvirt 98 - mountPath: /var/run/libvirt 99 name: libvirt-sockets 100 - mountPath: /usr/libexec/kubernetes/kubelet-plugins/volume/exec 101 name: k8s-flexvolume-plugins-dir 102 - mountPath: /var/lib/kubelet/pods 103 mountPropagation: Bidirectional 104 name: k8s-pods-dir 105 - mountPath: /var/log/vms 106 name: vms-log 107 - mountPath: /etc/virtlet/images 108 name: image-name-translations 109 - mountPath: /var/log/pods 110 name: pods-log 111 - mountPath: /var/log/libvirt 112 name: libvirt-log 113 - mountPath: /var/run/netns 114 mountPropagation: Bidirectional 115 name: netns-dir 116 - mountPath: /sys/fs/cgroup 117 name: cgroup 118 - command: 119 - /vms.sh 120 image: mirantis/virtlet 121 imagePullPolicy: IfNotPresent 122 name: vms 123 resources: {} 124 volumeMounts: 125 - mountPath: /var/lib/virtlet 126 mountPropagation: HostToContainer 127 name: virtlet 128 - mountPath: /var/lib/libvirt 129 name: libvirt 130 - mountPath: /var/log/vms 131 name: vms-log 132 - mountPath: /var/lib/kubelet/pods 133 mountPropagation: HostToContainer 134 name: k8s-pods-dir 135 - mountPath: /dev 136 name: dev 137 - mountPath: /lib/modules 138 name: modules 139 dnsPolicy: ClusterFirstWithHostNet 140 hostNetwork: true 141 hostPID: true 142 initContainers: 143 - command: 144 - /prepare-node.sh 145 env: 146 - name: KUBE_NODE_NAME 147 valueFrom: 148 fieldRef: 149 apiVersion: v1 150 fieldPath: spec.nodeName 151 - name: VIRTLET_DISABLE_KVM 152 valueFrom: 153 configMapKeyRef: 154 key: disable_kvm 155 name: virtlet-config 156 optional: true 157 - name: VIRTLET_SRIOV_SUPPORT 158 valueFrom: 159 configMapKeyRef: 160 key: sriov_support 161 name: virtlet-config 162 optional: true 163 - name: VIRTLET_DOWNLOAD_PROTOCOL 164 valueFrom: 165 configMapKeyRef: 166 key: download_protocol 167 name: virtlet-config 168 optional: true 169 - name: VIRTLET_LOGLEVEL 170 valueFrom: 171 configMapKeyRef: 172 key: loglevel 173 name: virtlet-config 174 optional: true 175 - name: VIRTLET_CALICO_SUBNET 176 valueFrom: 177 configMapKeyRef: 178 key: calico-subnet 179 name: virtlet-config 180 optional: true 181 - name: IMAGE_REGEXP_TRANSLATION 182 valueFrom: 183 configMapKeyRef: 184 key: image_regexp_translation 185 name: virtlet-config 186 optional: true 187 - name: VIRTLET_RAW_DEVICES 188 valueFrom: 189 configMapKeyRef: 190 key: raw_devices 191 name: virtlet-config 192 optional: true 193 - name: VIRTLET_DISABLE_LOGGING 194 valueFrom: 195 configMapKeyRef: 196 key: disable_logging 197 name: virtlet-config 198 optional: true 199 - name: VIRTLET_CPU_MODEL 200 valueFrom: 201 configMapKeyRef: 202 key: cpu-model 203 name: virtlet-config 204 optional: true 205 - name: KUBELET_ROOT_DIR 206 valueFrom: 207 configMapKeyRef: 208 key: kubelet_root_dir 209 name: virtlet-config 210 optional: true 211 - name: VIRTLET_IMAGE_TRANSLATIONS_DIR 212 value: /etc/virtlet/images 213 image: mirantis/virtlet 214 imagePullPolicy: IfNotPresent 215 name: prepare-node 216 resources: {} 217 securityContext: 218 privileged: true 219 volumeMounts: 220 - mountPath: /kubelet-volume-plugins 221 name: k8s-flexvolume-plugins-dir 222 - mountPath: /run 223 name: run 224 - mountPath: /var/run/docker.sock 225 name: dockersock 226 - mountPath: /hostlog 227 name: log 228 - mountPath: /host-var-lib 229 name: var-lib 230 - mountPath: /dev 231 name: dev 232 - mountPath: /var/lib/virtlet 233 name: virtlet 234 serviceAccountName: virtlet 235 volumes: 236 - hostPath: 237 path: /dev 238 name: dev 239 - hostPath: 240 path: /sys/fs/cgroup 241 name: cgroup 242 - hostPath: 243 path: /lib/modules 244 name: modules 245 - hostPath: 246 path: /boot 247 name: boot 248 - hostPath: 249 path: /run 250 name: run 251 - hostPath: 252 path: /var/run/docker.sock 253 name: dockersock 254 - hostPath: 255 path: /var/lib/virtlet 256 name: virtlet 257 - hostPath: 258 path: /var/lib/libvirt 259 name: libvirt 260 - hostPath: 261 path: /var/log 262 name: log 263 - hostPath: 264 path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec 265 name: k8s-flexvolume-plugins-dir 266 - hostPath: 267 path: /var/lib/kubelet/pods 268 name: k8s-pods-dir 269 - hostPath: 270 path: /var/lib 271 name: var-lib 272 - hostPath: 273 path: /var/log/virtlet/vms 274 name: vms-log 275 - hostPath: 276 path: /var/log/libvirt 277 name: libvirt-log 278 - hostPath: 279 path: /var/run/libvirt 280 name: libvirt-sockets 281 - hostPath: 282 path: /var/log/pods 283 name: pods-log 284 - hostPath: 285 path: /var/run/netns 286 name: netns-dir 287 - hostPath: 288 path: /etc/libvirt/qemu 289 name: qemu 290 - configMap: 291 name: virtlet-image-translations 292 name: image-name-translations 293 updateStrategy: {} 294 295 --- 296 apiVersion: rbac.authorization.k8s.io/v1beta1 297 kind: ClusterRoleBinding 298 metadata: 299 creationTimestamp: null 300 name: virtlet 301 roleRef: 302 apiGroup: rbac.authorization.k8s.io 303 kind: ClusterRole 304 name: virtlet 305 subjects: 306 - kind: ServiceAccount 307 name: virtlet 308 namespace: kube-system 309 310 --- 311 apiVersion: rbac.authorization.k8s.io/v1beta1 312 kind: ClusterRole 313 metadata: 314 creationTimestamp: null 315 name: virtlet 316 namespace: kube-system 317 rules: 318 - apiGroups: 319 - "" 320 resources: 321 - configmaps 322 - nodes 323 verbs: 324 - create 325 - get 326 327 --- 328 apiVersion: rbac.authorization.k8s.io/v1beta1 329 kind: ClusterRole 330 metadata: 331 creationTimestamp: null 332 name: configmap-reader 333 rules: 334 - apiGroups: 335 - "" 336 resources: 337 - configmaps 338 verbs: 339 - get 340 - list 341 - watch 342 343 --- 344 apiVersion: rbac.authorization.k8s.io/v1beta1 345 kind: ClusterRole 346 metadata: 347 creationTimestamp: null 348 name: virtlet-userdata-reader 349 rules: 350 - apiGroups: 351 - "" 352 resources: 353 - configmaps 354 - secrets 355 verbs: 356 - get 357 358 --- 359 apiVersion: rbac.authorization.k8s.io/v1beta1 360 kind: ClusterRoleBinding 361 metadata: 362 creationTimestamp: null 363 name: kubelet-node-binding 364 roleRef: 365 apiGroup: rbac.authorization.k8s.io 366 kind: ClusterRole 367 name: configmap-reader 368 subjects: 369 - apiGroup: rbac.authorization.k8s.io 370 kind: Group 371 name: system:nodes 372 373 --- 374 apiVersion: rbac.authorization.k8s.io/v1beta1 375 kind: ClusterRoleBinding 376 metadata: 377 creationTimestamp: null 378 name: vm-userdata-binding 379 roleRef: 380 apiGroup: rbac.authorization.k8s.io 381 kind: ClusterRole 382 name: virtlet-userdata-reader 383 subjects: 384 - kind: ServiceAccount 385 name: virtlet 386 namespace: kube-system 387 388 --- 389 apiVersion: rbac.authorization.k8s.io/v1beta1 390 kind: ClusterRole 391 metadata: 392 creationTimestamp: null 393 name: virtlet-crd 394 rules: 395 - apiGroups: 396 - apiextensions.k8s.io 397 resources: 398 - customresourcedefinitions 399 verbs: 400 - create 401 - apiGroups: 402 - virtlet.k8s 403 resources: 404 - virtletimagemappings 405 - virtletconfigmappings 406 verbs: 407 - list 408 - get 409 410 --- 411 apiVersion: rbac.authorization.k8s.io/v1beta1 412 kind: ClusterRoleBinding 413 metadata: 414 creationTimestamp: null 415 name: virtlet-crd 416 roleRef: 417 apiGroup: rbac.authorization.k8s.io 418 kind: ClusterRole 419 name: virtlet-crd 420 subjects: 421 - kind: ServiceAccount 422 name: virtlet 423 namespace: kube-system 424 425 --- 426 apiVersion: v1 427 kind: ServiceAccount 428 metadata: 429 creationTimestamp: null 430 name: virtlet 431 namespace: kube-system 432 433 --- 434 apiVersion: apiextensions.k8s.io/v1beta1 435 kind: CustomResourceDefinition 436 metadata: 437 creationTimestamp: null 438 labels: 439 virtlet.cloud: "" 440 name: virtletimagemappings.virtlet.k8s 441 spec: 442 group: virtlet.k8s 443 names: 444 kind: VirtletImageMapping 445 plural: virtletimagemappings 446 shortNames: 447 - vim 448 singular: virtletimagemapping 449 scope: Namespaced 450 version: v1 451 452 --- 453 apiVersion: apiextensions.k8s.io/v1beta1 454 kind: CustomResourceDefinition 455 metadata: 456 creationTimestamp: null 457 labels: 458 virtlet.cloud: "" 459 name: virtletconfigmappings.virtlet.k8s 460 spec: 461 group: virtlet.k8s 462 names: 463 kind: VirtletConfigMapping 464 plural: virtletconfigmappings 465 shortNames: 466 - vcm 467 singular: virtletconfigmapping 468 scope: Namespaced 469 validation: 470 openAPIV3Schema: 471 properties: 472 spec: 473 properties: 474 config: 475 properties: 476 calicoSubnetSize: 477 maximum: 32 478 minimum: 0 479 type: integer 480 cniConfigDir: 481 type: string 482 cniPluginDir: 483 type: string 484 cpuModel: 485 type: string 486 criSocketPath: 487 type: string 488 databasePath: 489 type: string 490 disableKVM: 491 type: boolean 492 disableLogging: 493 type: boolean 494 downloadProtocol: 495 pattern: ^https?$ 496 type: string 497 enableRegexpImageTranslation: 498 type: boolean 499 enableSriov: 500 type: boolean 501 fdServerSocketPath: 502 type: string 503 imageDir: 504 type: string 505 imageTranslationConfigsDir: 506 type: string 507 kubeletRootDir: 508 type: string 509 libvirtURI: 510 type: string 511 logLevel: 512 maximum: 2147483647 513 minimum: 0 514 type: integer 515 rawDevices: 516 type: string 517 skipImageTranslation: 518 type: boolean 519 streamPort: 520 maximum: 65535 521 minimum: 1 522 type: integer 523 nodeName: 524 type: string 525 nodeSelector: 526 type: object 527 priority: 528 type: integer 529 version: v1 530