Tag: agent, nodes


Disabling unattended upgrades is recommended to avoid unexpected outages due to packages updated at runtime outside of scheduled maintenance windows and without testing and/or versification.


Commonly used package responsible for unattended upgrades on Ubuntu systems is unattended-upgrades. It may be disabled using the following Kublr cluster spec snippet.


spec:
  kublrAgentConfig:
    kublr:
      setup:
        cmd:
          before:
          - '/bin/sh'
          - '-c'
          - 'P=unattended-upgrades ; while dpkg -s "$P" ; [ "$?" != 1 ] ; do apt-get purge -y "$P" || sleep 5 ; done'

An alternative configuration removing the unattended upgrade package may be implemented as follows:


spec:
  kublrAgentConfig:
    kublr:
      setup:
        packages:
          remove: ["unattended-upgrades"]