davidkllun

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

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

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