k8s 小知识

1.自动补全

yum install bash-completion

source <(kubectl completion bash)

2.容器内命令信号捕捉

dumb-int

3.1.8.1 出现failed to get cgroup stats for "/system.slice/docker.service": failed to get container info for "/system.slice/docker.service": unknown container "/system.slice/docker.service"

--runtime-cgroups=/systemd/system.slice --kubelet-cgroups=/systemd/system.slice

监听端口改为0.0.0.0

你可能感兴趣的:(k8s)