when i change a statefulset yaml and submit , pods start rolling update. if one of pods container terminated and recreate in the same node, this container cannot run.
apiVersion: apps/v1 kind: StatefulSet metadata: name: web spec: selector: matchLabels: app: nginx # has to match .spec.template.metadata.labels serviceName: "nginx" replicas: 3 # by default is 1 template: metadata: labels: app: nginx # has to match .spec.selector.matchLabels spec: terminationGracePeriodSeconds: 10 containers: - name: nginx image: nginx resources: limits: cpu: 2 memory: 16000Mi requests: cpu: 2 memory: 8000Mi ports: - containerPort: 80 name: web volumeMounts: - name: www mountPath: /usr/share/nginx/html volumeClaimTemplates: - metadata: name: www spec: accessModes: [ "ReadWriteOnce" ] storageClassName: "powerstore" resources: requests: storage: 10Gi
edit cpu: 2 to cpu: 4
kubectl apply -f nginx.yaml
kubectl describe po nginx-2
Warning FailedMount 2m6s kubelet Unable to attach or mount volumes: unmounted volumes=[my-persistent-storage], unattached volumes=[my-persistent-storage default-token-2mzjs]: timed out waiting for the condition Warning FailedMount 2s (x9 over 2m10s) kubelet MountVolume.SetUp failed for volume "csi-pstore-60831e62c4" : rpc error: code = Internal desc = error while trying to detect fs for staging path /var/lib/kubelet/plugins/kubernetes.io/csi/pv/csi-pstore-60831e62c4/globalmount/c846493b-108c-45d7-8e80-a97668b34415: exit status 32
Yes, we believe that multipath is the key to the problem, and we are using the Iscsi environment. We compared FC and ISCSI scenarios, and there is really no problem in FC mode.
Thank you very much! we need some professional guidance for using csi-powerstore in iscsi scenarios, such as network card mode and system settings.
oisk
5 Posts
1530
0
Posted August 22nd, 2021 18:00
Before, we unanimously installed csi-powerstore via dell csi operator. Later, after we switched to the helm, everything was normal.