Open polym opened 4 years ago
kubectl get pod --all-namespaces | grep Evicted | awk '{printf "%s\n%s\n", $1, $2}' | xargs -n2 sh -c 'kubectl -n $0 delete pod $1'
show variables like 'general%';
set global general_log=1;
set global general_log_file=/tmp/general_log.log;
内核降级到 4.4 后,容器无法正常启动,OCI runtime create failed: listen unixgram /var/run/docker/runtime-runc/moby/ notify bind: invalid argument: unknown
,现象同 https://github.com/moby/moby/issues/40886
解决方案:
(RHEL7/CentOS7: User namespaces disabled; add 'user_namespace.enable=1' to boot command line)
grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)"
强制删除 Pod
kubectl delete pod mypod-0 --grace-period=0 --force --wait=false
kubectl patch pod mypod-0 -p '{"metadata":{"finalizers":null}}'
2月17日-2月21日
Bash