diff --git a/deploy/kubernetes-1.19/direct/pmem-csi.yaml b/deploy/kubernetes-1.19/direct/pmem-csi.yaml index 10dbd96af..69c572781 100644 --- a/deploy/kubernetes-1.19/direct/pmem-csi.yaml +++ b/deploy/kubernetes-1.19/direct/pmem-csi.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.19/direct/testing/pmem-csi.yaml b/deploy/kubernetes-1.19/direct/testing/pmem-csi.yaml index cc3f7246c..5fa4ed4d9 100644 --- a/deploy/kubernetes-1.19/direct/testing/pmem-csi.yaml +++ b/deploy/kubernetes-1.19/direct/testing/pmem-csi.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.19/lvm/pmem-csi.yaml b/deploy/kubernetes-1.19/lvm/pmem-csi.yaml index f3bd19bb3..ed6404946 100644 --- a/deploy/kubernetes-1.19/lvm/pmem-csi.yaml +++ b/deploy/kubernetes-1.19/lvm/pmem-csi.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.19/lvm/testing/pmem-csi.yaml b/deploy/kubernetes-1.19/lvm/testing/pmem-csi.yaml index 6ebe94f66..4ae9f86f0 100644 --- a/deploy/kubernetes-1.19/lvm/testing/pmem-csi.yaml +++ b/deploy/kubernetes-1.19/lvm/testing/pmem-csi.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.19/pmem-csi-direct-testing.yaml b/deploy/kubernetes-1.19/pmem-csi-direct-testing.yaml index cc3f7246c..5fa4ed4d9 100644 --- a/deploy/kubernetes-1.19/pmem-csi-direct-testing.yaml +++ b/deploy/kubernetes-1.19/pmem-csi-direct-testing.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.19/pmem-csi-direct.yaml b/deploy/kubernetes-1.19/pmem-csi-direct.yaml index 10dbd96af..69c572781 100644 --- a/deploy/kubernetes-1.19/pmem-csi-direct.yaml +++ b/deploy/kubernetes-1.19/pmem-csi-direct.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.19/pmem-csi-lvm-testing.yaml b/deploy/kubernetes-1.19/pmem-csi-lvm-testing.yaml index 6ebe94f66..4ae9f86f0 100644 --- a/deploy/kubernetes-1.19/pmem-csi-lvm-testing.yaml +++ b/deploy/kubernetes-1.19/pmem-csi-lvm-testing.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.19/pmem-csi-lvm.yaml b/deploy/kubernetes-1.19/pmem-csi-lvm.yaml index f3bd19bb3..ed6404946 100644 --- a/deploy/kubernetes-1.19/pmem-csi-lvm.yaml +++ b/deploy/kubernetes-1.19/pmem-csi-lvm.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/direct/pmem-csi.yaml b/deploy/kubernetes-1.20/direct/pmem-csi.yaml index 10dbd96af..69c572781 100644 --- a/deploy/kubernetes-1.20/direct/pmem-csi.yaml +++ b/deploy/kubernetes-1.20/direct/pmem-csi.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/direct/testing/pmem-csi.yaml b/deploy/kubernetes-1.20/direct/testing/pmem-csi.yaml index cc3f7246c..5fa4ed4d9 100644 --- a/deploy/kubernetes-1.20/direct/testing/pmem-csi.yaml +++ b/deploy/kubernetes-1.20/direct/testing/pmem-csi.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/lvm/pmem-csi.yaml b/deploy/kubernetes-1.20/lvm/pmem-csi.yaml index f3bd19bb3..ed6404946 100644 --- a/deploy/kubernetes-1.20/lvm/pmem-csi.yaml +++ b/deploy/kubernetes-1.20/lvm/pmem-csi.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/lvm/testing/pmem-csi.yaml b/deploy/kubernetes-1.20/lvm/testing/pmem-csi.yaml index 6ebe94f66..4ae9f86f0 100644 --- a/deploy/kubernetes-1.20/lvm/testing/pmem-csi.yaml +++ b/deploy/kubernetes-1.20/lvm/testing/pmem-csi.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/pmem-csi-direct-testing.yaml b/deploy/kubernetes-1.20/pmem-csi-direct-testing.yaml index cc3f7246c..5fa4ed4d9 100644 --- a/deploy/kubernetes-1.20/pmem-csi-direct-testing.yaml +++ b/deploy/kubernetes-1.20/pmem-csi-direct-testing.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/pmem-csi-direct.yaml b/deploy/kubernetes-1.20/pmem-csi-direct.yaml index 10dbd96af..69c572781 100644 --- a/deploy/kubernetes-1.20/pmem-csi-direct.yaml +++ b/deploy/kubernetes-1.20/pmem-csi-direct.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/pmem-csi-lvm-testing.yaml b/deploy/kubernetes-1.20/pmem-csi-lvm-testing.yaml index 6ebe94f66..4ae9f86f0 100644 --- a/deploy/kubernetes-1.20/pmem-csi-lvm-testing.yaml +++ b/deploy/kubernetes-1.20/pmem-csi-lvm-testing.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -562,6 +598,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -572,6 +617,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.20/pmem-csi-lvm.yaml b/deploy/kubernetes-1.20/pmem-csi-lvm.yaml index f3bd19bb3..ed6404946 100644 --- a/deploy/kubernetes-1.20/pmem-csi-lvm.yaml +++ b/deploy/kubernetes-1.20/pmem-csi-lvm.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -534,6 +570,15 @@ spec: fieldPath: spec.nodeName image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -544,6 +589,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/direct/pmem-csi.yaml b/deploy/kubernetes-1.21/direct/pmem-csi.yaml index a556971b3..8641b709c 100644 --- a/deploy/kubernetes-1.21/direct/pmem-csi.yaml +++ b/deploy/kubernetes-1.21/direct/pmem-csi.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -543,6 +579,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -553,6 +598,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/direct/testing/pmem-csi.yaml b/deploy/kubernetes-1.21/direct/testing/pmem-csi.yaml index 96d7289ae..b09e28644 100644 --- a/deploy/kubernetes-1.21/direct/testing/pmem-csi.yaml +++ b/deploy/kubernetes-1.21/direct/testing/pmem-csi.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -571,6 +607,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -581,6 +626,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/lvm/pmem-csi.yaml b/deploy/kubernetes-1.21/lvm/pmem-csi.yaml index 51b253568..325010fed 100644 --- a/deploy/kubernetes-1.21/lvm/pmem-csi.yaml +++ b/deploy/kubernetes-1.21/lvm/pmem-csi.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -543,6 +579,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -553,6 +598,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/lvm/testing/pmem-csi.yaml b/deploy/kubernetes-1.21/lvm/testing/pmem-csi.yaml index 2bd6559fa..6d5002d65 100644 --- a/deploy/kubernetes-1.21/lvm/testing/pmem-csi.yaml +++ b/deploy/kubernetes-1.21/lvm/testing/pmem-csi.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -571,6 +607,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -581,6 +626,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/pmem-csi-direct-testing.yaml b/deploy/kubernetes-1.21/pmem-csi-direct-testing.yaml index 96d7289ae..b09e28644 100644 --- a/deploy/kubernetes-1.21/pmem-csi-direct-testing.yaml +++ b/deploy/kubernetes-1.21/pmem-csi-direct-testing.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -571,6 +607,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -581,6 +626,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/pmem-csi-direct.yaml b/deploy/kubernetes-1.21/pmem-csi-direct.yaml index a556971b3..8641b709c 100644 --- a/deploy/kubernetes-1.21/pmem-csi-direct.yaml +++ b/deploy/kubernetes-1.21/pmem-csi-direct.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -543,6 +579,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -553,6 +598,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/pmem-csi-lvm-testing.yaml b/deploy/kubernetes-1.21/pmem-csi-lvm-testing.yaml index 2bd6559fa..6d5002d65 100644 --- a/deploy/kubernetes-1.21/pmem-csi-lvm-testing.yaml +++ b/deploy/kubernetes-1.21/pmem-csi-lvm-testing.yaml @@ -382,6 +382,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -392,6 +401,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -487,6 +505,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver-test:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -498,6 +525,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -571,6 +607,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -581,6 +626,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kubernetes-1.21/pmem-csi-lvm.yaml b/deploy/kubernetes-1.21/pmem-csi-lvm.yaml index 51b253568..325010fed 100644 --- a/deploy/kubernetes-1.21/pmem-csi-lvm.yaml +++ b/deploy/kubernetes-1.21/pmem-csi-lvm.yaml @@ -380,6 +380,15 @@ spec: fieldPath: metadata.namespace image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -390,6 +399,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 60 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /certs @@ -463,6 +481,15 @@ spec: value: /tmp/termination-log image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-driver ports: - containerPort: 10010 @@ -474,6 +501,15 @@ spec: securityContext: privileged: true runAsUser: 0 + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 terminationMessagePath: /tmp/termination-log volumeMounts: - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi @@ -543,6 +579,15 @@ spec: fieldPath: metadata.name image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2 imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: external-provisioner ports: - containerPort: 10011 @@ -553,6 +598,15 @@ spec: memory: 128Mi securityContext: readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 300 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 volumeMounts: - mountPath: /csi name: socket-dir diff --git a/deploy/kustomize/operator/operator.yaml b/deploy/kustomize/operator/operator.yaml index aa98e7cab..4f6070abb 100644 --- a/deploy/kustomize/operator/operator.yaml +++ b/deploy/kustomize/operator/operator.yaml @@ -172,6 +172,18 @@ spec: volumeMounts: - name: tmp mountPath: /tmp + livenessProbe: + httpGet: + scheme: HTTP + path: /metrics + port: metrics + # Allow it to fail 5 times. This is conservative + # because the probe is new. It might get reduced + # to 1 later. + failureThreshold: 5 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 volumes: - name: tmp emptyDir: {} diff --git a/deploy/kustomize/patches/metrics-controller.yaml b/deploy/kustomize/patches/metrics-controller.yaml index 3450ce7a3..d3293a0ca 100644 --- a/deploy/kustomize/patches/metrics-controller.yaml +++ b/deploy/kustomize/patches/metrics-controller.yaml @@ -14,3 +14,31 @@ - op: add path: /spec/template/spec/containers/0/command/- value: -metricsListen=:10010 +- op: add + path: /spec/template/spec/containers/0/livenessProbe + value: + # If the PMEM-CSI driver is able to serve metrics, + # then it is alive. + httpGet: + scheme: HTTP + path: /metrics + port: metrics + # Allow it to for a total duration of one minute. + # This is conservative because the probe is new. + failureThreshold: 6 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 +- op: add + path: /spec/template/spec/containers/0/startupProbe + value: + httpGet: + scheme: HTTP + path: /metrics + port: metrics + # Check more frequently while the container starts up + # to get it into a ready state quickly. + failureThreshold: 60 + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 diff --git a/deploy/kustomize/patches/metrics-node.yaml b/deploy/kustomize/patches/metrics-node.yaml index 254c88669..94ac74060 100644 --- a/deploy/kustomize/patches/metrics-node.yaml +++ b/deploy/kustomize/patches/metrics-node.yaml @@ -14,6 +14,35 @@ - op: add path: /spec/template/spec/containers/0/command/- value: -metricsListen=:10010 +- op: add + path: /spec/template/spec/containers/0/livenessProbe + value: + # If the PMEM-CSI driver is able to serve metrics, + # then it is alive. In particular this covers capacity + # checking. + httpGet: + scheme: HTTP + path: /metrics + port: metrics + # Allow it to for a total duration of one minute. + # This is conservative because the probe is new. + failureThreshold: 6 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 +- op: add + path: /spec/template/spec/containers/0/startupProbe + value: + httpGet: + scheme: HTTP + path: /metrics + port: metrics + # Startup may be slower when LVM needs to be set up first. + # Check more frequently to get it into a ready state quickly. + failureThreshold: 300 + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 # TODO: node-driver-registrar once it has metrics support. @@ -30,3 +59,29 @@ - op: add path: /spec/template/spec/containers/2/args/- value: --metrics-address=:10011 +- op: add + path: /spec/template/spec/containers/2/livenessProbe + value: + # If the provisioner is able to serve metrics, + # then it is alive. + httpGet: + scheme: HTTP + path: /metrics + port: metrics + # Same settings as for driver because the provisioner + # waits for the driver. + failureThreshold: 6 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 +- op: add + path: /spec/template/spec/containers/2/startupProbe + value: + httpGet: + scheme: HTTP + path: /metrics + port: metrics + failureThreshold: 300 + periodSeconds: 1 + successThreshold: 1 + timeoutSeconds: 5 diff --git a/deploy/operator/pmem-csi-operator.yaml b/deploy/operator/pmem-csi-operator.yaml index 6483a682b..c92dce3d4 100644 --- a/deploy/operator/pmem-csi-operator.yaml +++ b/deploy/operator/pmem-csi-operator.yaml @@ -189,6 +189,15 @@ spec: value: x509ignoreCN=0 image: intel/pmem-csi-driver:canary imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 5 + httpGet: + path: /metrics + port: metrics + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: pmem-csi-operator ports: - containerPort: 8080 diff --git a/pkg/pmem-csi-operator/controller/deployment/controller_driver.go b/pkg/pmem-csi-operator/controller/deployment/controller_driver.go index 87df2ae80..e5f56b9f6 100644 --- a/pkg/pmem-csi-operator/controller/deployment/controller_driver.go +++ b/pkg/pmem-csi-operator/controller/deployment/controller_driver.go @@ -1272,6 +1272,7 @@ func (d *pmemCSIDeployment) getNodeDriverCommand() []string { func (d *pmemCSIDeployment) getControllerContainer() corev1.Container { true := true + c := corev1.Container{ Name: "pmem-driver", Image: d.Spec.Image, @@ -1303,6 +1304,8 @@ func (d *pmemCSIDeployment) getControllerContainer() corev1.Container { SecurityContext: &corev1.SecurityContext{ ReadOnlyRootFilesystem: &true, }, + LivenessProbe: getMetricsProbe(6, 10), + StartupProbe: getMetricsProbe(60, 1), } if d.Spec.ControllerTLSSecret != "" { @@ -1386,6 +1389,8 @@ func (d *pmemCSIDeployment) getNodeDriverContainer() corev1.Container { }, TerminationMessagePath: "/tmp/termination-log", TerminationMessagePolicy: corev1.TerminationMessageReadFile, + LivenessProbe: getMetricsProbe(6, 10), + StartupProbe: getMetricsProbe(300, 1), } return c @@ -1434,6 +1439,8 @@ func (d *pmemCSIDeployment) getProvisionerContainer() corev1.Container { }, TerminationMessagePath: corev1.TerminationMessagePathDefault, TerminationMessagePolicy: corev1.TerminationMessageReadFile, + LivenessProbe: getMetricsProbe(6, 10), + StartupProbe: getMetricsProbe(300, 1), } if d.withStorageCapacity() { @@ -1669,6 +1676,22 @@ func (d *pmemCSIDeployment) getObjectMeta(name string, isClusterResource bool) m return meta } +func getMetricsProbe(failureThreshold int32, periodSeconds int32) *corev1.Probe { + return &corev1.Probe{ + Handler: corev1.Handler{ + HTTPGet: &corev1.HTTPGetAction{ + Scheme: "HTTP", + Path: "/metrics", + Port: intstr.FromString("metrics"), + }, + }, + SuccessThreshold: 1, + TimeoutSeconds: 5, + PeriodSeconds: periodSeconds, + FailureThreshold: failureThreshold, + } +} + func joinMaps(left, right map[string]string) map[string]string { result := map[string]string{} for key, value := range left {