Puppet Class: profile::wmcs::kubeadm::worker

Defined in:
modules/profile/manifests/wmcs/kubeadm/worker.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • docker_vol (Boolean) (defaults to: lookup('profile::wmcs::kubeadm::docker_vol', {default_value => true}))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/profile/manifests/wmcs/kubeadm/worker.pp', line 2

class profile::wmcs::kubeadm::worker (
    Boolean $docker_vol = lookup('profile::wmcs::kubeadm::docker_vol', {default_value => true}),
) {
    require profile::wmcs::kubeadm::preflight_checks

    # TODO: rename variable
    if $docker_vol {
        cinderutils::ensure { 'separate-containerd':
            min_gb        => 40,
            max_gb        => 160,
            mount_point   => '/var/lib/containerd',
            mount_mode    => '711',
            mount_options => 'discard,defaults',
            before        => Service['containerd'],
        }
    }

    sysctl::parameters { 'extra_inotify_instances':
        values   => {
            # the default is 128, and we were hitting it when using containerd
            'fs.inotify.max_user_instances' => 1024,
        },
        priority => 99,
    }

    include ::profile::wmcs::kubeadm::core
    contain ::profile::wmcs::kubeadm::core
}