5 Posts
0
1857
August 12th, 2021 19:00
csi-powerstore cannot support RollingUpdate ?
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
kubernetes version v1.20.9
csi-powerstore version v1.4
node:
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core
0 events found

