Skip to content

Draft: feat(aws): add node init script support

Extend the gitlabci config with the option node_init_scripts, to inject code that is executed on instance boot. It uses kops "hooks" to generate systemd oneshot services that run the specified code.

Example config:

    "node_init_scripts": [
      {
        "roles": "Node",
        "script": "sysctl kernel.core_uses_pid=1\n"
      }
    ],

node_init_scripts is a list of dicts, each containing an item script, and an optional item roles (either a str or list), which can be used to restrict the node roles that will execute the given script. By default, the script is injected on both cluster master and worker nodes.

Signed-off-by: Adriaan Schmidt adriaan.schmidt@siemens.com

Merge request reports