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

    删除完成

  • 相关阅读:
    PS_0005:画带颜色在线条框 按住Alt键复制
    零钱兑换(动态规划)
    倒排索引原理和实现
    集群搭建
    java内部类
    nohup &后台运行脚本
    scala构造函数
    spark数据源读取及读数据原理
    安装redis解决公司linux环境的坑
    61、对于employees表中,给出奇数行的first_name
  • 原文地址:https://www.cnblogs.com/ccielife/p/13366231.html
Copyright © 2011-2022 走看看