Skip to content

Instantly share code, notes, and snippets.

@skrobul
Last active October 17, 2022 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skrobul/4a939f2ed004ce52014f2c36a2e13074 to your computer and use it in GitHub Desktop.
Save skrobul/4a939f2ed004ce52014f2c36a2e13074 to your computer and use it in GitHub Desktop.
❯ kubectl -n kadalu get pods
NAME READY STATUS RESTARTS AGE
kadalu-csi-nodeplugin-vx5qk 0/3 ContainerCreating 0 2m55s
operator-6c7c7b5797-zjl2p 0/1 CrashLoopBackOff 4 (80s ago) 2m55s
~
❯ kubectl -n kadalu logs operator-6c7c7b5797-zjl2p
exec /kadalu/bin/python3: exec format error
~
❯ kubectl -n kadalu logs kadalu-csi-nodeplugin-vx5qk
Defaulted container "csi-node-driver-registrar" out of: csi-node-driver-registrar, kadalu-nodeplugin, kadalu-logging
Error from server (BadRequest): container "csi-node-driver-registrar" in pod "kadalu-csi-nodeplugin-vx5qk" is waiting to start: ContainerCreating
~
❯ kubectl -n kadalu describe pod kadalu-csi-nodeplugin-vx5qk
Name: kadalu-csi-nodeplugin-vx5qk
Namespace: kadalu
Priority: 0
Node: minikube/10.0.2.15
Start Time: Mon, 17 Oct 2022 18:01:24 +0200
Labels: app.kubernetes.io/component=csi-driver
app.kubernetes.io/name=kadalu-csi-nodeplugin
app.kubernetes.io/part-of=kadalu
controller-revision-hash=9dbbcd7f8
pod-template-generation=1
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: DaemonSet/kadalu-csi-nodeplugin
Containers:
csi-node-driver-registrar:
Container ID:
Image: docker.io/raspbernetes/csi-node-driver-registrar:2.0.1
Image ID:
Port: <none>
Host Port: <none>
Args:
--v=5
--csi-address=$(ADDRESS)
--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
ADDRESS: /plugin/csi.sock
DRIVER_REG_SOCK_PATH: /var/lib/kubelet/plugins/kadalu/csi.sock
KUBE_NODE_NAME: (v1:spec.nodeName)
Mounts:
/plugin from plugin-dir (rw)
/registration from registration-dir (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-x7zhb (ro)
kadalu-nodeplugin:
Container ID:
Image: docker.io/kadalu/kadalu-csi:devel
Image ID:
Port: <none>
Host Port: <none>
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
NODE_ID: (v1:spec.nodeName)
CSI_ENDPOINT: unix://plugin/csi.sock
KADALU_VERSION: devel
K8S_DIST: kubernetes
VERBOSE: no
CSI_ROLE: nodeplugin
Mounts:
/dev from gluster-dev (rw)
/plugin from plugin-dir (rw)
/var/lib/gluster from glusterfsd-volfilesdir (rw)
/var/lib/kubelet/plugins/kubernetes.io/csi from csi-dir (rw)
/var/lib/kubelet/pods from pods-mount-dir (rw)
/var/log/gluster from varlog (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-x7zhb (ro)
kadalu-logging:
Container ID:
Image: docker.io/library/busybox
Image ID:
Port: <none>
Host Port: <none>
Command:
/bin/sh
Args:
-c
while true; do logcnt=$(/bin/ls /var/log/gluster/ | wc -l); if [ ${logcnt} -gt 0 ]; then break; fi; sleep 5; done; tail -f /var/log/gluster/*.log
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/log/gluster from varlog (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-x7zhb (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
plugin-dir:
Type: HostPath (bare host directory volume)
Path: /var/lib/kubelet/plugins/kadalu
HostPathType: DirectoryOrCreate
pods-mount-dir:
Type: HostPath (bare host directory volume)
Path: /var/lib/kubelet/pods
HostPathType: Directory
registration-dir:
Type: HostPath (bare host directory volume)
Path: /var/lib/kubelet/plugins_registry/
HostPathType: Directory
glusterfsd-volfilesdir:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: kadalu-info
Optional: false
gluster-dev:
Type: HostPath (bare host directory volume)
Path: /dev
HostPathType:
varlog:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
csi-dir:
Type: HostPath (bare host directory volume)
Path: /var/lib/kubelet/plugins/kubernetes.io/csi/
HostPathType: DirectoryOrCreate
kube-api-access-x7zhb:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/disk-pressure:NoSchedule op=Exists
node.kubernetes.io/memory-pressure:NoSchedule op=Exists
node.kubernetes.io/not-ready:NoExecute op=Exists
node.kubernetes.io/pid-pressure:NoSchedule op=Exists
node.kubernetes.io/unreachable:NoExecute op=Exists
node.kubernetes.io/unschedulable:NoSchedule op=Exists
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m14s default-scheduler Successfully assigned kadalu/kadalu-csi-nodeplugin-vx5qk to minikube
Warning FailedMount 71s kubelet Unable to attach or mount volumes: unmounted volumes=[glusterfsd-volfilesdir], unattached volumes=[plugin-dir registration-dir kube-api-access-x7zhb pods-mount-dir glusterfsd-volfilesdir gluster-dev varlog csi-dir]: timed out waiting for the condition
Warning FailedMount 66s (x9 over 3m13s) kubelet MountVolume.SetUp failed for volume "glusterfsd-volfilesdir" : configmap "kadalu-info" not found
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment