Puppet Class: role::toollabs::k8s::webproxy

Defined in:
modules/role/manifests/toollabs/k8s/webproxy.pp

Overview

filtertags: labs-project-tools



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
30
31
32
33
34
35
# File 'modules/role/manifests/toollabs/k8s/webproxy.pp', line 2

class role::toollabs::k8s::webproxy {

    include ::toollabs::base
    $master_host = hiera('k8s_master')
    $etcd_url = join(prefix(suffix(hiera('flannel::etcd_hosts'), ':2379'), 'https://'), ',')

    ferm::service { 'flannel-vxlan':
        proto => udp,
        port  => 8472,
    }

    class { '::k8s::flannel':
        etcd_endpoints => $etcd_url,
    }

    class { '::toollabs::kube2proxy':
        master_host => $master_host,
    }

    class { '::k8s::infrastructure_config':
        master_host => $master_host,
    }

    class { '::k8s::proxy':
        master_host => $master_host,
    }

    # The kubelet service is installed automatically as part of the kubernetes-node
    # deb, we don't want it to be running on tools-proxy - so we are explicitly ensuring
    # it's stopped
    service { 'kubelet':
        ensure => stopped,
    }
}