github.com/flanksource/konfigadm@v0.12.0/resources/containerd.service (about)

     1  
     2  [Unit]
     3  # Start containerd as late as possible with respect to cloud-init's
     4  # boot stages. This ensures that cloud-init modules such as
     5  # write-files may be used to configure containerd prior to it
     6  # starting.
     7  #
     8  # Please see the following link for more information about the
     9  # cloud-init boot stage managed by the cloud-config.service:
    10  # https://cloudinit.readthedocs.io/en/latest/topics/boot.html#config
    11  
    12  # Ensure containerd is started before the cloud-init boot stage
    13  # that executes the runcmd module. This module is responsible
    14  # for running "kubeadm init", and thus containerd must be
    15  # started before this command is processed.
    16  #
    17  # Please see the following link for more information about the
    18  # cloud-init boot stage managed by the cloud-final.service:
    19  # https://cloudinit.readthedocs.io/en/latest/topics/boot.html#final
    20  After=cloud-init.service
    21  Before=cloud-config.service
    22  Wants=cloud-init.service
    23  Description=containerd container runtime
    24  Documentation=https://containerd.io
    25  
    26  [Install]
    27  WantedBy=cloud-config.service
    28  
    29  [Service]
    30  #ExecStartPre=/sbin/modprobe overlay
    31  ExecStart=/usr/local/bin/containerd
    32  Restart=always
    33  RestartSec=5
    34  Delegate=yes
    35  KillMode=process
    36  OOMScoreAdjust=-999
    37  LimitNOFILE=1048576
    38  # Having non-zero Limit*s causes performance problems due to accounting overhead
    39  # in the kernel. We recommend using cgroups to do container-local accounting.
    40  LimitNPROC=infinity
    41  LimitCORE=infinity
    42  TasksMax=infinity