V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
zqyisasd
V2EX  ›  云计算

k8s 的 master 被调度的 es 的 pods 占满内存,导致虚拟机死机,怎么解决

  •  
  •   zqyisasd · 2019 年 7 月 2 日 · 4155 次点击
    这是一个创建于 2402 天前的主题,其中的信息可能已经有所发展或是发生改变。
    手贱配置了 k8s 的 master 可以被调度,导致 es 的 pod 分配到 master,已经将 master 配置回不能调度,还是不行。具体尝试这些命令
    1、kubectl taint node k8s-master node-role.kubernetes.io/master=true:NoSchedule
    2、kubectl cordon k8s-master
    5 条回复    2019-07-25 20:39:08 +08:00
    zqyisasd
        1
    zqyisasd  
    OP
       2019 年 7 月 2 日
    有老哥有办法的吗
    zqyisasd
        2
    zqyisasd  
    OP
       2019 年 7 月 2 日
    强制删除 pods,pod 就迁移了
    raysonx
        3
    raysonx  
       2019 年 7 月 3 日
    kubectl drain
    ydcool
        4
    ydcool  
       2019 年 7 月 4 日
    不应该去给 pod 加配额吗
    ljf
        5
    ljf  
       2019 年 7 月 25 日
    kubectl cordon master
    kubectl drain master
    话说,楼主的 es 没有把日志文件挂载到本地吗,这才是头疼的,经常碰到 es 日志占满磁盘,导致 gc
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5544 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 03:18 · PVG 11:18 · LAX 19:18 · JFK 22:18
    ♥ Do have faith in what you're doing.