Esempio n. 1
0
def join_nodes(options):
    skuba = Skuba(options.conf, options.platform)
    skuba.join_nodes(
        masters=options.masters,
        workers=options.workers,
        timeout=options.timeout
    )
Esempio n. 2
0
def bootstrap(options):
    skuba = Skuba(options.conf, options.platform)
    skuba.cluster_bootstrap(
        kubernetes_version=options.kubernetes_version,
        cloud_provider=options.cloud_provider,
        timeout=options.timeout,
        registry_mirror=options.registry_mirror)
Esempio n. 3
0
def bootstrap(options):
    skuba = Skuba(options.conf, options.platform)
    skuba.cluster_init(
        kubernetes_version=options.kubernetes_version,
        cloud_provider=options.cloud_provider
    )
    skuba.node_bootstrap(
        cloud_provider=options.cloud_provider,
        timeout=options.timeout
    ) 
Esempio n. 4
0
def skuba(conf, target):
    return Skuba(conf, target)
Esempio n. 5
0
def node_upgrade(options):
    Skuba(options.conf,
          options.platform).node_upgrade(action=options.upgrade_action,
                                         role=options.role,
                                         nr=options.node)
Esempio n. 6
0
def remove_node(options):
    Skuba(options.conf, options.platform).node_remove(role=options.role,
                                                      nr=options.node)
Esempio n. 7
0
def join_node(options):
    Skuba(options.conf, options.platform).node_join(role=options.role,
                                                    nr=options.node)
Esempio n. 8
0
def cluster_upgrade_plan(options):
    Skuba(options.conf, options.platform).cluster_upgrade_plan()
Esempio n. 9
0
def cluster_status(options):
    print(Skuba(options.conf, options.platform).cluster_status())
Esempio n. 10
0
def cleanup(options):
    platforms.get_platform(options.conf, options.platform).cleanup()
    Skuba.cleanup(options.conf)
Esempio n. 11
0
def bootstrap(options):
    skuba = Skuba(options.conf, options.platform)
    skuba.cluster_init(kubernetes_version=options.kubernetes_version)
    skuba.node_bootstrap()
Esempio n. 12
0
def cluster_upgrade(options):
    Skuba(options.conf, options.platform).cluster_upgrade(action=options.upgrade_action)
Esempio n. 13
0
def bootstrap(options):
    skuba = Skuba(options.conf, options.platform)

    skuba.cluster_init()
    skuba.node_bootstrap()
Esempio n. 14
0
def build_skuba(options):
    Skuba.build(options.conf)
Esempio n. 15
0
def deploy(options):
    skuba = Skuba(options.conf, options.platform)
    skuba.cluster_deploy(kubernetes_version=options.kubernetes_version,
                         cloud_provider=options.cloud_provider,
                         timeout=options.timeout)
Esempio n. 16
0
def join_nodes(options):
    skuba = Skuba(options.conf, options.platform)
    skuba.join_nodes(masters=options.masters,
                     workers=options.workers,
                     delay=options.delay)