TipsOnPX

TurnToJPG -->


Tips

Delete the pods forcely:

// kubectl >= 1.5
# kubectl delete pods <pod> --grace-period=0 --force
// kubectl < 1.4
# kubectl delete pods <pod> --grace-period=0 

Install jq(Command-line JSON processor) :

wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
chmod +x ./jq
cp jq /usr/bin

px volume operation:

# pxctl v l
# pxctl v d XXXXXXX

Before you run px on k8s(offline), you have to manually install following packages:

# yum install -y linux-headers linux-devel gcc

kubectl get pods failure:

Change the hostname from: like k8sMaster->k8smaster

Mark node as unschedulable/schedulable.

kubectl cordon NODE
kubectl uncordon NODE

Delete pod issue:

# journalctl -lfu kubelet
# lsattr /var/lib/kubelet/pods/2176d3a8-984f-11e7-98c4-5254004b207b/volumes/kubernetes.io~portworx-volume
# chattr -i /var/lib/kubelet/pods/2176d3a8-984f-11e7-98c4-5254004b207b/volumes/kubernetes.io~portworx-volume/pvc-21522191-984f-11e7-98c4-5254004b207b