davidkllun

請問 Kubernetes 有機制刪除 exited container 嗎,如果重啟了 Docker 服務

  •  
  •   davidkllun · Oct 7, 2020 via iPhone · 3835 views
    This topic created in 2059 days ago, the information mentioned may be changed or developed.
    2 replies    2020-10-09 15:15:52 +08:00
    ManjusakaL
        1
    ManjusakaL  
       Oct 7, 2020
    有啊,Kuberlet 可以配置具体的 Container 的 GC Policy

    参见 ![Configuring kubelet Garbage Collection]( https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/#container-collection)
    kiddingU
        2
    kiddingU  
       Oct 9, 2020
    有 GC 策略清除过期或者未使用的镜像
    image-gc-high-threshold
    image-gc-low-threshold
    配置这两就行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2597 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 33ms · UTC 15:53 · PVG 23:53 · LAX 08:53 · JFK 11:53
    ♥ Do have faith in what you're doing.