Puppet Class: role::toollabs::k8s::bastion

Defined in:
modules/role/manifests/toollabs/k8s/bastion.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
# File 'modules/role/manifests/toollabs/k8s/bastion.pp', line 2

class role::toollabs::k8s::bastion {

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

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

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


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

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

    require_package('kubernetes-client')
}