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