赞
踩
cat > /etc/docker/daemon.json <<EOF { "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "log-opts": { "max-size": "100m" }, "storage-driver": "overlay2", "storage-opts": [ "overlay2.override_kernel_check=true" ] } EOF mkdir -p /etc/systemd/system/docker.service.d # Restart Docker systemctl daemon-reload systemctl restart docker
echo “1” > /proc/sys/net/ipv4/ip_forward
rm -rf /var/lib/etcd
背景:node 节点 kubeadm reset 后 重新kubeadm join失败
Failed to execute iptables-restore: exit status 1(invalid option – ‘5’)
解决:降低iptables版本,当前iptables-1.4.21-28.el7.x86_64,回滚为iptables-1.4.21-24.el7.x86_64 (centos7.5)
Error from server (Forbidden): secrets is forbidden: User “system:node:master” cannot create resource “secrets” in API group “” in the namespace “kube-system”: can only read resources of this type
export KUBECONFIG=/etc/kubernetes/admin.conf
kubectl delete -f kubernetes-dashboard.yaml 重新apply
type
is ‘ClusterIP’kubectl -n kube-system describe $(kubectl -n kube-system get secret -n kube-system -o name | grep namespace) | grep token
更改ClusterIP 为NodePort
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。