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

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

Overview

Parameters:

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


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/wmcs/kubeadm/worker.pp', line 1

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

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

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