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