Puppet Class: kubernetes
- Defined in:
- manifests/init.pp
Overview
Class: kubernetes
Full description of class kubernetes here.
Parameters
Document parameters here.
-
‘sample parameter`
Explanation of what this parameter affects and what it defaults to. e.g. “Specify one or more upstream ntp servers as an array.”
Variables
Here you should define a list of variables that this module would require.
-
‘sample variable`
Explanation of how this variable affects the function of this class and if
it has a default. e.g. "The parameter enc_ntp_servers must be set by the
External Node Classifier as a comma separated list of hostnames." (Note,
global variables should be avoided in favor of class parameters as
of Puppet 2.6.)
Examples
Authors
Author Name <author@domain.com>
Copyright
Copyright 2015 Your name here, unless otherwise noted.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'manifests/init.pp', line 45
class kubernetes($master = false) {
package {['docker', 'docker-logrotate', 'kubernetes', 'etcd', 'flannel']:
ensure => present}
file{'/etc/kubernetes/config':
content => template('kubernetes/kub_config.erb')
}
file{'/etc/sysconfig/flanneld':
content => template('kubernetes/flanneld.erb')
}
if $::kubernetes::master{
contain kubernetes::master
}
else {
contain kubernetes::minion
}
}
|