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

    删除完成

  • 相关阅读:
    兼容python3 小烦
    fstring 和 海象赋值
    Go-gRPC的简单使用
    GO-操作etcd简单示例
    进度报告
    进度报告
    windown 10 安装redis
    在.Net Core中使用T4工具生成实体文件
    python-with关键字,json,pickie序列化与反序列化
    python-文件操作-读,写,追加
  • 原文地址:https://www.cnblogs.com/ccielife/p/13366231.html
Copyright © 2011-2022 走看看