--- init-k8s.sh
+++ init-k8s.sh
... | ... | @@ -1,37 +1,52 @@ |
1 | 1 |
#! /bin/bash |
2 | 2 |
|
3 | 3 |
# LoadBalancer 타입의 서비스와 연결할 외부 IP 대역 |
4 |
-read -p "수강번호 : " num |
|
4 |
+read -p "이름을 입력하세요 : " num |
|
5 |
+ |
|
6 |
+# 이름을 입력 |
|
7 |
+case ${num} in |
|
8 |
+ 김대원) range='192.168.11.11-192.168.11.15' ;; |
|
9 |
+ 문성업) range='192.168.11.15-192.168.11.20' ;; |
|
10 |
+ 박청우) range='192.168.11.21-192.168.11.25' ;; |
|
11 |
+ 유조훈) range='192.168.11.25-192.168.11.30' ;; |
|
12 |
+ 장현정) range='192.168.11.31-192.168.11.35' ;; |
|
13 |
+ 최승원) range='192.168.11.35-192.168.11.40' ;; |
|
14 |
+ 조성수) range='192.168.11.41-192.168.11.45' ;; |
|
15 |
+ admin) range='192.168.11.46-192.168.11.50' ;; |
|
16 |
+esac |
|
17 |
+ |
|
18 |
+# LoadBalancer 타입의 서비스와 연결할 외부 IP 대역 |
|
19 |
+#read -p "수강번호 : " num |
|
5 | 20 |
|
6 | 21 |
# 수강 번호를 입력 |
7 |
-case ${num} in |
|
8 |
- 1) range='192.168.11.11-192.168.11.12' ;; |
|
9 |
- 2) range='192.168.11.13-192.168.11.14' ;; |
|
10 |
- 3) range='192.168.11.15-192.168.11.16' ;; |
|
11 |
- 4) range='192.168.11.17-192.168.11.18' ;; |
|
12 |
- 5) range='192.168.11.19-192.168.11.20' ;; |
|
13 |
- 6) range='192.168.11.21-192.168.11.22' ;; |
|
14 |
- 7) range='192.168.11.23-192.168.11.24' ;; |
|
15 |
- 8) range='192.168.11.25-192.168.11.26' ;; |
|
16 |
- 9) range='192.168.11.27-192.168.11.28' ;; |
|
17 |
- 10) range='192.168.11.29-192.168.11.30' ;; |
|
18 |
- 11) range='192.168.11.31-192.168.11.32' ;; |
|
19 |
- 12) range='192.168.11.33-192.168.11.34' ;; |
|
20 |
- 13) range='192.168.11.35-192.168.11.36' ;; |
|
21 |
- 14) range='192.168.11.37-192.168.11.38' ;; |
|
22 |
- 15) range='192.168.11.39-192.168.11.40' ;; |
|
23 |
- 16) range='192.168.11.41-192.168.11.42' ;; |
|
24 |
- 17) range='192.168.11.43-192.168.11.44' ;; |
|
25 |
- 18) range='192.168.11.45-192.168.11.46' ;; |
|
26 |
- 19) range='192.168.11.47-192.168.11.48' ;; |
|
27 |
- 20) range='192.168.11.49-192.168.11.50' ;; |
|
28 |
- 21) range='192.168.11.51-192.168.11.52' ;; |
|
29 |
- 22) range='192.168.11.53-192.168.11.54' ;; |
|
30 |
- 23) range='192.168.11.55-192.168.11.56' ;; |
|
31 |
- 24) range='192.168.11.57-192.168.11.58' ;; |
|
32 |
- 25) range='192.168.11.59-192.168.11.60' ;; |
|
33 |
- admin) range='192.168.11.61-192.168.11.62' ;; |
|
34 |
-esac |
|
22 |
+#case ${num} in |
|
23 |
+# 1) range='192.168.11.11-192.168.11.12' ;; |
|
24 |
+# 2) range='192.168.11.13-192.168.11.14' ;; |
|
25 |
+# 3) range='192.168.11.15-192.168.11.16' ;; |
|
26 |
+# 4) range='192.168.11.17-192.168.11.18' ;; |
|
27 |
+# 5) range='192.168.11.19-192.168.11.20' ;; |
|
28 |
+# 6) range='192.168.11.21-192.168.11.22' ;; |
|
29 |
+# 7) range='192.168.11.23-192.168.11.24' ;; |
|
30 |
+# 8) range='192.168.11.25-192.168.11.26' ;; |
|
31 |
+# 9) range='192.168.11.27-192.168.11.28' ;; |
|
32 |
+# 10) range='192.168.11.29-192.168.11.30' ;; |
|
33 |
+# 11) range='192.168.11.31-192.168.11.32' ;; |
|
34 |
+# 12) range='192.168.11.33-192.168.11.34' ;; |
|
35 |
+# 13) range='192.168.11.35-192.168.11.36' ;; |
|
36 |
+# 14) range='192.168.11.37-192.168.11.38' ;; |
|
37 |
+# 15) range='192.168.11.39-192.168.11.40' ;; |
|
38 |
+# 16) range='192.168.11.41-192.168.11.42' ;; |
|
39 |
+# 17) range='192.168.11.43-192.168.11.44' ;; |
|
40 |
+# 18) range='192.168.11.45-192.168.11.46' ;; |
|
41 |
+# 19) range='192.168.11.47-192.168.11.48' ;; |
|
42 |
+# 20) range='192.168.11.49-192.168.11.50' ;; |
|
43 |
+# 21) range='192.168.11.51-192.168.11.52' ;; |
|
44 |
+# 22) range='192.168.11.53-192.168.11.54' ;; |
|
45 |
+# 23) range='192.168.11.55-192.168.11.56' ;; |
|
46 |
+# 24) range='192.168.11.57-192.168.11.58' ;; |
|
47 |
+# 25) range='192.168.11.59-192.168.11.60' ;; |
|
48 |
+# admin) range='192.168.11.61-192.168.11.62' ;; |
|
49 |
+#esac |
|
35 | 50 |
|
36 | 51 |
# 파드를 생성하기 위해 swap off |
37 | 52 |
swapoff -a |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?