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