forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkubespray-cmd.sh
More file actions
executable file
·92 lines (73 loc) · 2.56 KB
/
kubespray-cmd.sh
File metadata and controls
executable file
·92 lines (73 loc) · 2.56 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env sh
# -----------------------------------------------------------------------------
# OPTION COMMAND - KUBESPRAY DEPLOYMENT
# -----------------------------------------------------------------------------
# Author : Dwi Fahni Denni (@zeroc0d3)
# Repository : https://github.com/dockube/dockube
# License : MIT
# -----------------------------------------------------------------------------
case $1 in
### DOCKUBE ###
dockube-cluster)
echo "### Build DocKube K8S Cluster ###"
./kubespray.sh dockube-build-cluster
;;
dockube-remove)
echo "### Remove DocKube K8S Cluster ###"
./kubespray.sh dockube-remove-cluster
;;
dockube-reset)
echo "### Reset DocKube K8S Cluster ###"
./kubespray.sh dockube-reset-cluster
;;
dockube-scale)
echo "### Scale DocKube K8S Cluster ###"
./kubespray.sh dockube-scale-cluster
;;
dockube-upgrade)
echo "### Upgrade DocKube K8S Cluster ###"
./kubespray.sh dockube-upgrade-cluster
;;
### K8S STAGING ###
k8s-staging-cluster)
echo "### Build Kubespray K8S Cluster (Staging) ###"
./kubespray.sh staging-build-cluster
;;
k8s-staging-remove)
echo "### Remove Kubespray K8S Cluster (Staging) ###"
./kubespray.sh staging-remove-cluster
;;
k8s-staging-reset)
echo "### Reset Kubespray K8S Cluster (Staging) ###"
./kubespray.sh staging-reset-cluster
;;
k8s-staging-scale)
echo "### Scale Kubespray K8S Cluster (Staging) ###"
./kubespray.sh staging-scale-cluster
;;
k8s-staging-upgrade)
echo "### Upgrade Kubespray K8S Cluster (Staging) ###"
./kubespray.sh staging-upgrade-cluster
;;
### K8S PRODUCTION ###
k8s-production-cluster)
echo "### Build Kubespray K8S Cluster (Production) ###"
./kubespray.sh production-build-cluster
;;
k8s-production-remove)
echo "### Remove Kubespray K8S Cluster (Production) ###"
./kubespray.sh production-remove-cluster
;;
k8s-production-reset)
echo "### Reset Kubespray K8S Cluster (Production) ###"
./kubespray.sh production-reset-cluster
;;
k8s-production-scale)
echo "### Scale Kubespray K8S Cluster (Production) ###"
./kubespray.sh production-scale-cluster
;;
k8s-production-upgrade)
echo "### Upgrade Kubespray K8S Cluster (Production) ###"
./kubespray.sh production-upgrade-cluster
;;
esac