davidkllun

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

  •  
  •   davidkllun · Oct 7, 2020 via iPhone · 3850 views
    This topic created in 2071 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   ·   955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:14 · PVG 04:14 · LAX 13:14 · JFK 16:14
    ♥ Do have faith in what you're doing.