zoukankan      html  css  js  c++  java
  • k8s 排错

    问题1:

    lookup production.cloudflare.docker.com on 223.5.5.5:53: server misbehaving

    解决:更改dns

    vim /etc/resolv.conf

    改成了8.8.8.8

    问题2:

    删除namespace 一直处于Terminating状态

    解决:强制删除

    [root@k8s-master example-nodeport-cluster]# kubectl get ns
    NAME STATUS AGE
    default Active 35d
    ingress-nginx Active 20d
    kube-node-lease Active 35d
    kube-ops Active 11d
    kube-public Active 35d
    kube-system Active 35d
    kubernetes-dashboard Terminating 35d
    monitoring Active 11d

    kubectl get ns kubernetes-dashboard -o json > kubernetes-dashboard-sytem.json

    vim kubernetes-dashboard-sytem.json

    开一个新的terminer窗口启动kubectl proxy

    [root@k8s-master example-nodeport-cluster]# kubectl proxy
    Starting to serve on 127.0.0.1:8001

    再次尝试namespace

    curl -k -H "Content-Type: application/json" -X PUT --data-binary @kubernetes-dashboard-sytem.json http://127.0.0.1:8001/api/v1/namespaces/kubernetes-dashboard/finalize

    再次查看namespace

    [root@k8s-master example-nodeport-cluster]# kubectl get namespace
    NAME STATUS AGE
    default Active 35d
    ingress-nginx Active 20d
    kube-node-lease Active 35d
    kube-ops Active 11d
    kube-public Active 35d
    kube-system Active 35d
    monitoring Active 11d

    删除完成

  • 相关阅读:
    hdu6070
    hdu6059( Trie )
    hdu4757(可持久化 Trie )
    csu1216( Trie )
    hdu6058
    hdu6049
    hdu6052
    hdu6041
    hdu1269(有向图强连通分量)
    bzoj2159: Crash 的文明世界
  • 原文地址:https://www.cnblogs.com/ccielife/p/13366231.html
Copyright © 2011-2022 走看看