V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
zqyisasd
V2EX  ›  云计算

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

  •  
  •   zqyisasd · Jul 2, 2019 · 4331 views
    This topic created in 2492 days ago, the information mentioned may be changed or developed.
    手贱配置了 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 replies    2019-07-25 20:39:08 +08:00
    zqyisasd
        1
    zqyisasd  
    OP
       Jul 2, 2019
    有老哥有办法的吗
    zqyisasd
        2
    zqyisasd  
    OP
       Jul 2, 2019
    强制删除 pods,pod 就迁移了
    raysonx
        3
    raysonx  
       Jul 3, 2019
    kubectl drain
    ydcool
        4
    ydcool  
       Jul 4, 2019
    不应该去给 pod 加配额吗
    ljf
        5
    ljf  
       Jul 25, 2019
    kubectl cordon master
    kubectl drain master
    话说,楼主的 es 没有把日志文件挂载到本地吗,这才是头疼的,经常碰到 es 日志占满磁盘,导致 gc
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5905 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 02:51 · PVG 10:51 · LAX 19:51 · JFK 22:51
    ♥ Do have faith in what you're doing.