• k8s删除节点


    k8s 删除节点

    线上环境

    # ctl get nodes
    NAME                       STATUS   ROLES    AGE    VERSION
    10.0.0.123   Ready    <none>   104d   v1.20
    10.0.0.154   Ready    <none>   11d    v1.20
    10.0.0.155   Ready    <none>   11d    v1.20
    10.0.0.157   Ready    <none>   116s   v1.20
    #  ctl cordon 10.0.0.155
    node/10.0.0.155 cordoned
    # ctl get pod
    
    # ctl drain --ignore-daemonsets 10.0.0.155
    node/10.0.0.155 already cordoned
    error: unable to drain node "10.0.0.155", aborting command...
    
    There are pending nodes to be drained:
     10.0.0.155
    error: cannot delete Pods with local storage (use --delete-local-data to override): gitlab-runner/gitlab-runner-gitlab-runner-c669795b4-4p6kp, gitlab-runner/gitlab-runner-gitlab-runner-c669795b4-kscgx, istio-system/grafana-95d4f8f58-zpvvg, istio-system/jaeger-7d656bc7c6-z7v4m, istio-system/prometheus-6d87d85c88-vwrqt
    
    # ctl drain --ignore-daemonsets --delete-local-data  10.0.0.155
    
    
    # ctl delete node 10.0.0.155
    node "10.0.0.155" deleted
    
    过手如登山,一步一重天
  • 相关阅读:
    洛谷P1057 传球游戏
    洛谷 CF937A Olympiad
    洛谷P4057 晨跑
    New blog
    DHTMLX系列组件的学习笔记
    javascript学习笔记
    typeof 使用介绍
    tomcat启动后ids页面无法访问
    快捷键accesskey
    jquery回调函数callback的使用
  • 原文地址:https://www.cnblogs.com/zisefeizhu/p/14416820.html
Copyright © 2020-2023  润新知