Created
November 8, 2022 09:06
-
-
Save anjannath/f8401e6a2d571757be54a5428d3b1811 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: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| labels: | |
| app.kubernetes.io/component: storage | |
| app.kubernetes.io/managed-by: hostpath-provisioner-operator | |
| app.kubernetes.io/part-of: hyperconverged-cluster | |
| app.kubernetes.io/version: 4.11.0 | |
| k8s-app: hostpath-provisioner | |
| prometheus.hostpathprovisioner.kubevirt.io: "true" | |
| name: hostpath-provisioner-csi | |
| namespace: openshift-cnv | |
| spec: | |
| revisionHistoryLimit: 10 | |
| selector: | |
| matchLabels: | |
| k8s-app: hostpath-provisioner | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app.kubernetes.io/component: storage | |
| app.kubernetes.io/managed-by: hostpath-provisioner-operator | |
| app.kubernetes.io/part-of: hyperconverged-cluster | |
| app.kubernetes.io/version: 4.11.0 | |
| k8s-app: hostpath-provisioner | |
| prometheus.hostpathprovisioner.kubevirt.io: "true" | |
| spec: | |
| containers: | |
| - args: | |
| - --drivername=kubevirt.io.hostpath-provisioner | |
| - --v=1 | |
| - --endpoint=$(CSI_ENDPOINT) | |
| - --nodeid=$(NODE_NAME) | |
| - --version=$(VERSION) | |
| - --datadir=$(PV_DIR) | |
| env: | |
| - name: CSI_ENDPOINT | |
| value: unix:///csi/csi.sock | |
| - name: NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: spec.nodeName | |
| - name: PV_DIR | |
| value: '[{"name":"local-hpp","path":"local-hpp-data-dir/csi"}]' | |
| - name: VERSION | |
| value: v4.11.0 | |
| image: registry.redhat.io/container-native-virtualization/hostpath-csi-driver-rhel8@sha256:625d4fc6b177787572f1f35992cfc809a2587fbb80b6c91c3ffc7a647d369a2e | |
| imagePullPolicy: IfNotPresent | |
| livenessProbe: | |
| failureThreshold: 5 | |
| httpGet: | |
| path: /healthz | |
| port: 9898 | |
| scheme: HTTP | |
| initialDelaySeconds: 10 | |
| periodSeconds: 2 | |
| successThreshold: 1 | |
| timeoutSeconds: 3 | |
| name: hostpath-provisioner | |
| ports: | |
| - containerPort: 9898 | |
| name: healthz | |
| protocol: TCP | |
| - containerPort: 8080 | |
| name: metrics | |
| protocol: TCP | |
| resources: | |
| requests: | |
| cpu: 10m | |
| memory: 150Mi | |
| securityContext: | |
| privileged: true | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| volumeMounts: | |
| - mountPath: /var/lib/kubelet/plugins | |
| mountPropagation: Bidirectional | |
| name: plugins-dir | |
| - mountPath: /var/lib/kubelet/pods | |
| mountPropagation: Bidirectional | |
| name: mountpoint-dir | |
| - mountPath: /csi | |
| name: socket-dir | |
| - mountPath: /local-hpp-data-dir | |
| mountPropagation: HostToContainer | |
| name: local-hpp-data-dir | |
| - args: | |
| - --v=1 | |
| - --csi-address=/csi/csi.sock | |
| - --kubelet-registration-path=/var/lib/kubelet/plugins/csi-hostpath/csi.sock | |
| env: | |
| - name: KUBE_NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: spec.nodeName | |
| image: registry.redhat.io/openshift4/ose-csi-node-driver-registrar@sha256:3641cdf2c6f5b7bb30bd9908a096d1df354b20f54e9fece244a64b2669b4b989 | |
| imagePullPolicy: IfNotPresent | |
| name: node-driver-registrar | |
| resources: | |
| requests: | |
| cpu: 10m | |
| memory: 150Mi | |
| securityContext: | |
| privileged: true | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| volumeMounts: | |
| - mountPath: /csi | |
| name: socket-dir | |
| - mountPath: /registration | |
| name: registration-dir | |
| - mountPath: /local-hpp-data-dir | |
| mountPropagation: HostToContainer | |
| name: local-hpp-data-dir | |
| - args: | |
| - --csi-address=/csi/csi.sock | |
| - --health-port=9898 | |
| image: registry.redhat.io/openshift4/ose-csi-livenessprobe@sha256:7fd23ff555f3747e7eb68864ff0e9d154943dcc386f0a363d2ebc33c18089519 | |
| imagePullPolicy: IfNotPresent | |
| name: liveness-probe | |
| resources: | |
| requests: | |
| cpu: 10m | |
| memory: 150Mi | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| volumeMounts: | |
| - mountPath: /csi | |
| name: socket-dir | |
| - args: | |
| - --v=1 | |
| - --csi-address=/csi/csi.sock | |
| - --feature-gates=Topology=true | |
| - --enable-capacity=true | |
| - --capacity-for-immediate-binding=true | |
| - --extra-create-metadata=true | |
| - --immediate-topology=false | |
| - --strict-topology=true | |
| - --node-deployment=true | |
| - --default-fstype=xfs | |
| env: | |
| - name: NAMESPACE | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: metadata.namespace | |
| - name: POD_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: metadata.name | |
| - name: NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: spec.nodeName | |
| image: registry.redhat.io/openshift4/ose-csi-external-provisioner@sha256:3d7a7e72a5afd846a5ba74e7c90184f9909b8e1fbb6774cd4339491af60024be | |
| imagePullPolicy: IfNotPresent | |
| name: csi-provisioner | |
| resources: | |
| requests: | |
| cpu: 10m | |
| memory: 150Mi | |
| securityContext: | |
| privileged: true | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| volumeMounts: | |
| - mountPath: /csi | |
| name: socket-dir | |
| dnsPolicy: ClusterFirst | |
| restartPolicy: Always | |
| schedulerName: default-scheduler | |
| securityContext: {} | |
| serviceAccount: hostpath-provisioner-admin-csi | |
| serviceAccountName: hostpath-provisioner-admin-csi | |
| terminationGracePeriodSeconds: 30 | |
| volumes: | |
| - hostPath: | |
| path: /var/lib/kubelet/plugins/csi-hostpath | |
| 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: /var/lib/kubelet/plugins | |
| type: Directory | |
| name: plugins-dir | |
| - hostPath: | |
| path: /mnt/pv-data | |
| type: DirectoryOrCreate | |
| name: local-hpp-data-dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment