-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.py
52 lines (40 loc) · 1.32 KB
/
deploy.py
1
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from lib.env import EnvConfigure
from lib.etcd import DeployEtcd
from lib.api_server import DeployApiServer
from lib.controller_manager import DeployManager
from lib.scheduler import DeployScheduler
from lib.kubelet import DeployKubelet
from lib.proxy import DeployProxy
from lib.flannel import DeployFlanneld
from lib.coredns import DeployCoreDns
class Deploy:
def __init__(self):
# env configure
env_config = EnvConfigure()
env_config.install()
# etcd install
deploy_etcd = DeployEtcd()
deploy_etcd.install()
# kube-apiserver install
deploy_api_server = DeployApiServer()
deploy_api_server.install()
# deploy kube-controller-manager
deploy_manager = DeployManager()
deploy_manager.install()
# deploy kube-scheduler
deploy_scheduler = DeployScheduler()
deploy_scheduler.install()
# deploy kubelet
deploy_kubelet = DeployKubelet()
deploy_kubelet.install()
# deploy kube-proxy
deploy_proxy = DeployProxy()
deploy_proxy.install()
# deploy flanneld
deploy_flanneld = DeployFlanneld()
deploy_flanneld.install()
# deploy coredns
deploy_coredns = DeployCoreDns()
deploy_coredns.install()
if __name__ == '__main__':
Deploy()