small problem with the kubernetes deployment, the pods stuck in ContainerCreating, below is the pods listing and the erpnext pod description:
kubectl -n erpnext get pods
NAME READY STATUS RESTARTS AGE
erpnext-upstream-erpnext-7567d74895-9pp68 0/2 ContainerCreating 0 36m
erpnext-upstream-redis-cache-846cbf879d-rkffs 1/1 Running 0 36m
erpnext-upstream-redis-queue-76b459598b-f9ttl 1/1 Running 0 36m
erpnext-upstream-redis-socketio-65fb9d7968-7zdpj 1/1 Running 0 36m
erpnext-upstream-scheduler-79944484b6-jnhdv 0/1 ContainerCreating 0 36m
erpnext-upstream-socketio-679cd546cb-zqh4x 0/1 ContainerCreating 0 36m
erpnext-upstream-worker-d-6cbb54f6f7-5nxmp 0/1 ContainerCreating 0 36m
erpnext-upstream-worker-l-778ff74d-rksxj 0/1 ContainerCreating 0 36m
erpnext-upstream-worker-s-847b85c7dd-x29kz 0/1 ContainerCreating 0 36m
kubectl -n erpnext describe pods erpnext-upstream-erpnext-7567d74895-9pp68
Name: erpnext-upstream-erpnext-7567d74895-9pp68
Namespace: erpnext
Priority: 0
Node: lke46309-74203-61b716abe01a/192.168.128.122
Start Time: Wed, 15 Dec 2021 04:20:42 +0300
Labels: app.kubernetes.io/instance=erpnext-upstream-backend
app.kubernetes.io/name=erpnext-backend
pod-template-hash=7567d74895
Annotations:
Status: Pending
IP:
IPs:
Controlled By: ReplicaSet/erpnext-upstream-erpnext-7567d74895
Containers:
erpnext-assets:
Container ID:
Image: frappe/erpnext-nginx:v13.16.1
Image ID:
Port: 8080/TCP
Host Port: 0/TCP
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
FRAPPE_PY: 0.0.0.0
FRAPPE_PY_PORT: 8000
FRAPPE_SOCKETIO: erpnext-upstream-socketio
SOCKETIO_PORT: 9000
Mounts:
/assets from assets-cache (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-xng6p (ro)
/var/www/html/sites from sites-dir (rw)
erpnext-python:
Container ID:
Image: frappe/erpnext-worker:v13.16.1
Image ID:
Port:
Host Port:
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Liveness: tcp-socket :8000 delay=5s timeout=1s period=10s #success=1 #failure=3
Readiness: tcp-socket :8000 delay=5s timeout=1s period=10s #success=1 #failure=3
Environment:
MARIADB_HOST: mariadb.mariadb.svc.cluster.local
DB_PORT: 3306
REDIS_QUEUE: erpnext-upstream-redis-queue:12000
REDIS_CACHE: erpnext-upstream-redis-cache:13000
REDIS_SOCKETIO: erpnext-upstream-redis-socketio:11000
SOCKETIO_PORT: 9000
Mounts:
/home/frappe/frappe-bench/logs from logs (rw)
/home/frappe/frappe-bench/sites from sites-dir (rw)
/home/frappe/frappe-bench/sites/assets from assets-cache (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-xng6p (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
assets-cache:
Type: EmptyDir (a temporary directory that shares a pod’s lifetime)
Medium:
SizeLimit:
sites-dir:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: erpnext-upstream
ReadOnly: false
logs:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: erpnext-upstream-logs
ReadOnly: false
kube-api-access-xng6p:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
Warning FailedScheduling 34m default-scheduler 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 34m default-scheduler 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.
Normal Scheduled 34m default-scheduler Successfully assigned erpnext/erpnext-upstream-erpnext-7567d74895-9pp68 to lke46309-74203-61b716abe01a
Warning FailedAttachVolume 22m (x13 over 34m) attachdetach-controller AttachVolume.Attach failed for volume “pvc-6e6058146c3a445c” : rpc error: code = InvalidArgument desc = ControllerPublishVolume Volume capability is not compatible: volume_id:“227816-pvc6e6058146c3a445c” node_id:“32777308” volume_capability:<mount:<fs_type:“ext4” > access_mode:<mode:MULTI_NODE_MULTI_WRITER > > volume_context:<key:“storage.kubernetes.io/csiProvisionerIdentity” value:“1639412423746-8081-linodebs.csi.linode.com” >
Warning FailedMount 9m51s (x4 over 23m) kubelet Unable to attach or mount volumes: unmounted volumes=[logs sites-dir], unattached volumes=[kube-api-access-xng6p logs assets-cache sites-dir]: timed out waiting for the condition
Warning FailedMount 5m17s (x3 over 32m) kubelet Unable to attach or mount volumes: unmounted volumes=[sites-dir logs], unattached volumes=[sites-dir kube-api-access-xng6p logs assets-cache]: timed out waiting for the condition
Warning FailedAttachVolume 3m42s (x22 over 34m) attachdetach-controller AttachVolume.Attach failed for volume “pvc-2771b14475004b8b” : rpc error: code = InvalidArgument desc = ControllerPublishVolume Volume capability is not compatible: volume_id:“227817-pvc2771b14475004b8b” node_id:“32777308” volume_capability:<mount:<fs_type:“ext4” > access_mode:<mode:MULTI_NODE_MULTI_WRITER > > volume_context:<key:“storage.kubernetes.io/csiProvisionerIdentity” value:“1639412423746-8081-linodebs.csi.linode.com” >
Warning FailedMount 3m3s (x4 over 30m) kubelet Unable to attach or mount volumes: unmounted volumes=[sites-dir logs], unattached volumes=[assets-cache sites-dir kube-api-access-xng6p logs]: timed out waiting for the condition
Warning FailedMount 48s (x4 over 27m) kubelet Unable to attach or mount volumes: unmounted volumes=[logs sites-dir], unattached volumes=[logs assets-cache sites-dir kube-api-access-xng6p]: timed out waiting for the condition