apiVersion: apps/v1 kind: StatefulSet metadata: name: lvp namespace: lvp labels: app: lvp spec: serviceName: lvp replicas: 1 selector: matchLabels: app: lvp template: metadata: labels: app: lvp spec: serviceAccount: lvp imagePullSecrets: - name: regkey containers: - name: lvp image: protryon/lvp:1.0.0 imagePullPolicy: Always securityContext: privileged: true env: - name: LVP_CONFIG value: /config/config.yaml volumeMounts: - name: config mountPath: /config - name: plugin-dir mountPath: /csi - name: mountpoint-dir mountPath: /var/lib/kubelet/pods/ mountPropagation: "Bidirectional" - name: data-dir mountPath: /db - name: source-dir mountPath: /host - name: csi-driver-registrar image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.7.0 securityContext: privileged: true args: - "--csi-address=/csi/csi.sock" - "--kubelet-registration-path=/var/lib/kubelet/plugins/lvp/csi.sock" - "--http-endpoint=:9809" volumeMounts: - name: plugin-dir mountPath: /csi - name: registration-dir mountPath: /registration ports: - containerPort: 9809 name: healthz livenessProbe: httpGet: path: /healthz port: healthz initialDelaySeconds: 5 timeoutSeconds: 5 - name: csi-provisioner image: gcr.io/k8s-staging-sig-storage/csi-provisioner:v3.5.0 args: - "--csi-address=/csi/csi.sock" imagePullPolicy: "IfNotPresent" volumeMounts: - name: plugin-dir mountPath: /csi - name: csi-attacher image: registry.k8s.io/sig-storage/csi-attacher:v4.3.0 args: - "--csi-address=/csi/csi.sock" imagePullPolicy: "IfNotPresent" volumeMounts: - name: plugin-dir mountPath: /csi - name: csi-resizer image: registry.k8s.io/sig-storage/csi-resizer:v1.8.0 args: - "--csi-address=/csi/csi.sock" imagePullPolicy: "IfNotPresent" volumeMounts: - name: plugin-dir mountPath: /csi - name: csi-sanity image: protryon/csi-test:5.0.0 imagePullPolicy: Always volumeMounts: - name: plugin-dir mountPath: /csi volumes: - name: config configMap: name: lvp - name: plugin-dir hostPath: path: /var/lib/kubelet/plugins/lvp/ type: DirectoryOrCreate - name: source-dir hostPath: path: / type: Directory - name: mountpoint-dir hostPath: path: /var/lib/kubelet/pods/ type: Directory - name: registration-dir hostPath: path: /var/lib/kubelet/plugins_registry/ type: Directory - name: data-dir hostPath: path: /var/lib/lvp/ type: DirectoryOrCreate