Created
October 11, 2022 09:17
-
-
Save ensonic/824beb97dd5630e6725ca41c52e6a348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: storage.k8s.io/v1 | |
| kind: CSIDriver | |
| metadata: | |
| name: csi-image.warm-metal.tech | |
| spec: | |
| attachRequired: false | |
| podInfoOnMount: true | |
| volumeLifecycleModes: | |
| - Persistent | |
| - Ephemeral | |
| --- | |
| apiVersion: v1 | |
| imagePullSecrets: | |
| - name: gcr-json-key | |
| kind: ServiceAccount | |
| metadata: | |
| creationTimestamp: null | |
| name: csi-image-warm-metal | |
| namespace: kube-system | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: Role | |
| metadata: | |
| creationTimestamp: null | |
| name: csi-image-warm-metal | |
| namespace: kube-system | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resourceNames: | |
| - csi-image-warm-metal | |
| resources: | |
| - serviceaccounts | |
| verbs: | |
| - get | |
| - apiGroups: | |
| - "" | |
| resourceNames: | |
| - gcr-json-key | |
| resources: | |
| - secrets | |
| verbs: | |
| - get | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: RoleBinding | |
| metadata: | |
| name: csi-image-warm-metal | |
| namespace: kube-system | |
| roleRef: | |
| apiGroup: rbac.authorization.k8s.io | |
| kind: Role | |
| name: csi-image-warm-metal | |
| subjects: | |
| - kind: ServiceAccount | |
| name: csi-image-warm-metal | |
| namespace: kube-system | |
| --- | |
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| creationTimestamp: null | |
| name: csi-image-warm-metal | |
| namespace: kube-system | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: csi-image-warm-metal | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: csi-image-warm-metal | |
| spec: | |
| containers: | |
| - args: | |
| - --csi-address=/csi/csi.sock | |
| - --kubelet-registration-path=/var/lib/kubelet/plugins/csi-image.warm-metal.tech/csi.sock | |
| env: | |
| - name: KUBE_NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: spec.nodeName | |
| image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 | |
| imagePullPolicy: IfNotPresent | |
| lifecycle: | |
| preStop: | |
| exec: | |
| command: | |
| - /bin/sh | |
| - -c | |
| - rm -rf /registration/csi-image.warm-metal.tech /registration/csi-image.warm-metal.tech-reg.sock | |
| name: node-driver-registrar | |
| resources: {} | |
| volumeMounts: | |
| - mountPath: /csi | |
| name: socket-dir | |
| - mountPath: /registration | |
| name: registration-dir | |
| - args: | |
| - --endpoint=$(CSI_ENDPOINT) | |
| - --node=$(KUBE_NODE_NAME) | |
| - --runtime-addr=$(CRI_ADDR) | |
| env: | |
| - name: CSI_ENDPOINT | |
| value: unix:///csi/csi.sock | |
| - name: CRI_ADDR | |
| value: containerd:///run/containerd/containerd.sock | |
| - name: KUBE_NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: spec.nodeName | |
| image: gcr.io/cloud-robotics-releases/csi-image:v0.5.1 | |
| imagePullPolicy: IfNotPresent | |
| name: plugin | |
| resources: {} | |
| securityContext: | |
| privileged: true | |
| volumeMounts: | |
| - mountPath: /csi | |
| name: socket-dir | |
| - mountPath: /var/lib/kubelet/pods | |
| mountPropagation: Bidirectional | |
| name: mountpoint-dir | |
| - mountPath: /run/containerd/containerd.sock | |
| name: runtime-socket | |
| - mountPath: /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs | |
| mountPropagation: Bidirectional | |
| name: snapshot-root-0 | |
| hostNetwork: true | |
| serviceAccountName: csi-image-warm-metal | |
| volumes: | |
| - hostPath: | |
| path: /var/lib/kubelet/plugins/csi-image.warm-metal.tech | |
| type: DirectoryOrCreate | |
| name: socket-dir | |
| - hostPath: | |
| path: /var/lib/kubelet/pods | |
| type: DirectoryOrCreate | |
| name: mountpoint-dir | |
| - hostPath: | |
| path: /var/lib/kubelet/plugins_registry | |
| type: Directory | |
| name: registration-dir | |
| - hostPath: | |
| path: /run/containerd/containerd.sock | |
| type: Socket | |
| name: runtime-socket | |
| - hostPath: | |
| path: /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs | |
| type: Directory | |
| name: snapshot-root-0 | |
| updateStrategy: {} | |
| status: | |
| currentNumberScheduled: 0 | |
| desiredNumberScheduled: 0 | |
| numberMisscheduled: 0 | |
| numberReady: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment