Skip to content

Commit

Permalink
CNI plug-ins such as calico, cilium, weave and kube-router are supported
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudnativer committed Nov 26, 2021
1 parent 9b5eafa commit c64e665
Show file tree
Hide file tree
Showing 73 changed files with 6,890 additions and 467 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ Please operate in the root user environment. Execute on the kube-install host se
# ./kube-install -exec install -master "192.168.1.11,192.168.1.12,192.168.1.13" -node "192.168.1.11,192.168.1.12,192.168.1.13,192.168.1.14" -k8sver "1.22" -ostype "centos7" -label "192168001011"
```

Notice: Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these types of "ostype".<br>
Notice:
* Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these types of "ostype". Since the lower versions of CentOS 7 and RedHat 7 may lack kernel modules, 'Kube install' provides the function of automatically upgrading the operating system kernels of CentOS 7 and rhel7 to 4.19. You can choose to use this function by `-upgradekernel` or manually optimize the operating system kernel yourself.
* Please select the CNI plug-ins you need to install. At present, 'Kube install' supports CNI plug-ins such as `Flannel`, `Calico`, `Kube-router`, `weave` and `Cilium`. If you need to install "cilium", please upgrade the Linux kernel to version 4.9 or above.

<br>

In addition, if you need to specify the directory path to the Kubernetes cluster installation, you can set it using the `-softdir` parameter.

<br>
Expand Down
8 changes: 7 additions & 1 deletion README0.7-jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ kube-installソースのインストール機でrootユーザーを使って下
# ./kube-install -exec install -master "192.168.1.11,192.168.1.12,192.168.1.13" -node "192.168.1.11,192.168.1.12,192.168.1.13,192.168.1.14" -k8sver "1.22" -ostype "centos7" -label "192168001011"
```

注意:kube-installソフトウェアは`rhel7`,rhel8``centos7``centos8``ubuntu20``suse15`などのバージョンのオペレーティングシステムをサポートします。初期化操作をする時、`-ostype`パラメータの設定が正しいことを確認してください。<br>
注意:

* kube-installソフトウェアは`rhel 7`,rhel 8``centos7``centos8``ubuntu20``suse15`などのバージョンのオペレーティングシステムをサポートしています。セットアップ操作をする時、`-ostype`パラメータの設定が正しいことを確認してください。低いバージョンの`centos 7``redhat 7`はカーネルモジュールが不足する可能性があるので、`kube-install``centos 7``rhel 7`オペレーティングシステムのカーネルに対して自動的に4.19にアップグレードする機能を提供しています。この機能を使って、`-upgradekernel`パラメータを選択することができます。
* あなたがインストールしたいCNIプラグインを選択してください。現在は、`kube-innstall``Flannel``Calico``Kube-router``Weave``Cilium`などのCNIプラグインタイプをサポートしています。`Clium`をインストールする必要があれば、Linuxカーネルを4.9以上にアップグレードしてください。

<br>

また、Kubernetesクラスタを目的ホストにインストールするディレクトリパスをカスタマイズする必要があれば `-softdir` パラメータを持って設定することができます。

<br>
Expand Down
8 changes: 7 additions & 1 deletion README0.7-zh-hk.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@
# ./kube-install -exec install -master "192.168.1.11,192.168.1.12,192.168.1.13" -node "192.168.1.11,192.168.1.12,192.168.1.13,192.168.1.14" -k8sver "1.22" -ostype "centos7" -label "192168001011"
```

注意:kube-install軟體支援`rhel7``rhel8``centos7``centos8``ubuntu20``suse15`等版本的作業系統,在做安裝部署操作的時候,請確保`-ostype`參數設置正確。<br>
注意:

* kube-install軟體支援`rhel7``rhel8``centos7``centos8``ubuntu20``suse15`等版本的作業系統,在做安裝部署操作的時候,請確保`-ostype`參數設置正確。 由於低版本的centos7和redhat7可能缺少內核模塊,`kube-install`對centos7和rhel7作業系統內核的提供了自動升級到4.19的功能,你可以選擇`-upgradekernel`參數使用此功能,也可能自己手工優化作業系統內核。
* 請選擇好你需要安裝的CNI挿件,現時`kube-install`支持Flannel、Calico、Kube-router、Weave、Cilium等CNI挿件類型。 如果需要安裝“Cilium”,請將Linux內核陞級到4.9或以上版本。

<br>

另外,如果你需要自定義製定Kubernetes集羣安裝在目標主機上的目錄路徑的話,可以帶上`-softdir`參數來設定。

<br>
Expand Down
8 changes: 7 additions & 1 deletion README0.7-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@
# ./kube-install -exec install -master "192.168.1.11,192.168.1.12,192.168.1.13" -node "192.168.1.11,192.168.1.12,192.168.1.13,192.168.1.14" -k8sver "1.22" -ostype "centos7" -label "192168001011"
```

注意:kube-install软件支持`rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15`等版本的操作系统,在做安装部署操作的时候,请确保`-ostype`参数设置正确。<br>
注意:

* kube-install软件支持`rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15`等版本的操作系统,在做安装部署操作的时候,请确保`-ostype`参数设置正确。由于低版本的centos7和redhat7可能缺少内核模块,`kube-install`对centos7和rhel7操作系统内核的提供了自动升级到4.19的功能,你可以选择`-upgradekernel`参数使用此功能,也可能自己手工优化操作系统内核。
* 请选择好你需要安装的CNI插件,目前`kube-install`支持Flannel、Calico、Kube-router、Weave、Cilium等CNI插件类型。如果需要安装“Cilium”,请将Linux内核升级到4.9或以上版本。

<br>

另外,如果你需要自定义制定Kubernetes集群安装在目标主机上的目录路径的话,可以带上`-softdir`参数来设置。

<br>
Expand Down
7 changes: 6 additions & 1 deletion README0.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ Please operate in the root user environment. Execute on the kube-install host se
# ./kube-install -exec install -master "192.168.1.11,192.168.1.12,192.168.1.13" -node "192.168.1.11,192.168.1.12,192.168.1.13,192.168.1.14" -k8sver "1.22" -ostype "centos7" -label "192168001011"
```

Notice: Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these types of "ostype".<br>
Notice:
* Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these types of "ostype". Since the lower versions of CentOS 7 and RedHat 7 may lack kernel modules, 'Kube install' provides the function of automatically upgrading the operating system kernels of CentOS 7 and rhel7 to 4.19. You can choose to use this function by `-upgradekernel` or manually optimize the operating system kernel yourself.
* Please select the CNI plug-ins you need to install. At present, 'Kube install' supports CNI plug-ins such as `Flannel`, `Calico`, `Kube-router`, `weave` and `Cilium`. If you need to install "cilium", please upgrade the Linux kernel to version 4.9 or above.

<br>

In addition, if you need to specify the directory path to the Kubernetes cluster installation, you can set it using the `-softdir` parameter.

<br>
Expand Down
2 changes: 1 addition & 1 deletion data/config/language.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cn
en
90 changes: 90 additions & 0 deletions data/logs/kubeinstalld/date_20211126_223109.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)

[GIN-debug] Loaded HTML Templates (18):
- login.tmpl
- masterinfo.tmpl
- node.tmpl
- nodeinfo.tmpl
- tools.tmpl
-
- deleteschedule.tmpl
- index.tmpl
- optresult.tmpl
- 404.html
- cluster.tmpl
- clusterdel.tmpl
- clusterinfo.tmpl
- logs.tmpl
- calendarscheduler.tmpl
- clusteradd.tmpl
- master.tmpl
- 403.html

[GIN-debug] GET /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (3 handlers)
[GIN-debug] HEAD /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (3 handlers)
[GIN-debug] GET / --> kube-install/lib.DaemonRun.func1 (3 handlers)
[GIN-debug] POST /login --> kube-install/lib.DaemonRun.func2 (3 handlers)
[GIN-debug] GET /clusterlist --> kube-install/lib.DaemonRun.func3 (3 handlers)
[GIN-debug] GET /clusterinfo --> kube-install/lib.DaemonRun.func4 (3 handlers)
[GIN-debug] GET /clusteradd --> kube-install/lib.DaemonRun.func5 (3 handlers)
[GIN-debug] GET /clusterdel --> kube-install/lib.DaemonRun.func6 (3 handlers)
[GIN-debug] GET /deleteschedule --> kube-install/lib.DaemonRun.func7 (3 handlers)
[GIN-debug] GET /masteradmin --> kube-install/lib.DaemonRun.func8 (3 handlers)
[GIN-debug] GET /masterinfo --> kube-install/lib.DaemonRun.func9 (3 handlers)
[GIN-debug] GET /nodeadmin --> kube-install/lib.DaemonRun.func10 (3 handlers)
[GIN-debug] GET /nodeinfo --> kube-install/lib.DaemonRun.func11 (3 handlers)
[GIN-debug] GET /nodeadd --> kube-install/lib.DaemonRun.func12 (3 handlers)
[GIN-debug] GET /tools --> kube-install/lib.DaemonRun.func13 (3 handlers)
[GIN-debug] GET /calendarscheduler --> kube-install/lib.DaemonRun.func14 (3 handlers)
[GIN-debug] GET /logs --> kube-install/lib.DaemonRun.func15 (3 handlers)
[GIN-debug] POST /install --> kube-install/lib.DaemonRun.func16 (3 handlers)
[GIN-debug] POST /rebuildmaster --> kube-install/lib.DaemonRun.func17 (3 handlers)
[GIN-debug] POST /delmaster --> kube-install/lib.DaemonRun.func18 (3 handlers)
[GIN-debug] POST /addnode --> kube-install/lib.DaemonRun.func19 (3 handlers)
[GIN-debug] POST /delnode --> kube-install/lib.DaemonRun.func20 (3 handlers)
[GIN-debug] POST /uninstall --> kube-install/lib.DaemonRun.func21 (3 handlers)
[GIN-debug] POST /deleteinstallschedule --> kube-install/lib.DaemonRun.func22 (3 handlers)
[GIN-debug] POST /toolswitch --> kube-install/lib.DaemonRun.func23 (3 handlers)
[GIN-debug] POST /sshkey --> kube-install/lib.DaemonRun.func24 (3 handlers)
[GIN-debug] GET /tty --> kube-install/lib.DaemonRun.func25 (3 handlers)
[GIN-debug] Listening and serving HTTP on 0.0.0.0:9080
[GIN] 2021/11/26 - 22:31:14 | 200 | 23.836139ms | 192.168.56.1 | GET "/"
[GIN] 2021/11/26 - 22:31:15 | 200 | 19.278522ms | 192.168.56.1 | GET "/clusterlist?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:16 | 200 | 31.730327ms | 192.168.56.1 | GET "/logs?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:17 | 200 | 17.205531ms | 192.168.56.1 | GET "/tools?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:17 | 304 | 111.522µs | 192.168.56.1 | GET "/static/img/Button/sshkey.png"
[GIN] 2021/11/26 - 22:31:17 | 304 | 144µs | 192.168.56.1 | GET "/static/img/Button/k8s.png"
[GIN] 2021/11/26 - 22:31:17 | 304 | 51.257µs | 192.168.56.1 | GET "/static/img/Button/calendar.png"
[GIN] 2021/11/26 - 22:31:17 | 304 | 52.926µs | 192.168.56.1 | GET "/static/img/Icons/16/i_16_settings.png"
[GIN] 2021/11/26 - 22:31:17 | 304 | 22.034µs | 192.168.56.1 | GET "/static/img/Icons/16/i_16_tools.png"
[GIN] 2021/11/26 - 22:31:18 | 200 | 11.884342ms | 192.168.56.1 | GET "/nodeadmin?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:19 | 200 | 13.877975ms | 192.168.56.1 | GET "/tools?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:20 | 200 | 15.503982ms | 192.168.56.1 | GET "/calendarscheduler?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:20 | 304 | 59.223µs | 192.168.56.1 | GET "/static/css/fullcalendar.min.css"
[GIN] 2021/11/26 - 22:31:20 | 304 | 121.995µs | 192.168.56.1 | GET "/static/js/jQuery/jquery-1.9.1.js"
[GIN] 2021/11/26 - 22:31:20 | 304 | 71.079µs | 192.168.56.1 | GET "/static/js/Moment/moment.min.js"
[GIN] 2021/11/26 - 22:31:20 | 304 | 61.689µs | 192.168.56.1 | GET "/static/js/jQueryUI/jquery-ui-1.10.2.js"
[GIN] 2021/11/26 - 22:31:20 | 304 | 28.943µs | 192.168.56.1 | GET "/static/js/FullCalendar/fullcalendar-3.2.0.min.js"
[GIN] 2021/11/26 - 22:31:20 | 304 | 69.212µs | 192.168.56.1 | GET "/static/css/fullcalendar.print.min.css"
[GIN] 2021/11/26 - 22:31:20 | 304 | 43.741µs | 192.168.56.1 | GET "/static/img/Icons/16/i_16_calendar.png"
[GIN] 2021/11/26 - 22:31:21 | 200 | 14.625029ms | 192.168.56.1 | GET "/tools?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:21 | 200 | 12.298466ms | 192.168.56.1 | GET "/nodeadmin?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:22 | 200 | 16.702566ms | 192.168.56.1 | GET "/masteradmin?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:23 | 200 | 16.891997ms | 192.168.56.1 | GET "/clusterlist?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:24 | 200 | 12.998287ms | 192.168.56.1 | GET "/?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:30 | 200 | 13.904654ms | 192.168.56.1 | GET "/?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver=&lang=cn"
[GIN] 2021/11/26 - 22:31:31 | 200 | 16.375134ms | 192.168.56.1 | GET "/?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver=&lang=en"
[GIN] 2021/11/26 - 22:31:33 | 200 | 15.570035ms | 192.168.56.1 | GET "/clusterlist?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:33 | 200 | 13.944451ms | 192.168.56.1 | GET "/masteradmin?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:35 | 200 | 14.30729ms | 192.168.56.1 | GET "/nodeadmin?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:35 | 200 | 16.428548ms | 192.168.56.1 | GET "/tools?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:35 | 200 | 14.476709ms | 192.168.56.1 | GET "/logs?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:36 | 200 | 12.59934ms | 192.168.56.1 | GET "/clusterlist?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:36 | 200 | 12.622286ms | 192.168.56.1 | GET "/?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:37 | 200 | 14.30628ms | 192.168.56.1 | GET "/clusterlist?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:43 | 200 | 17.566255ms | 192.168.56.1 | GET "/masteradmin?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
[GIN] 2021/11/26 - 22:31:43 | 200 | 15.582736ms | 192.168.56.1 | GET "/?label=&softdir=%2fopt%2fkube-install&ostype=&k8sver="
54 changes: 54 additions & 0 deletions data/logs/kubeinstalld/date_20211126_223212.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)

[GIN-debug] Loaded HTML Templates (18):
- clusteradd.tmpl
- master.tmpl
- optresult.tmpl
- tools.tmpl
-
- 403.html
- calendarscheduler.tmpl
- nodeinfo.tmpl
- clusterdel.tmpl
- index.tmpl
- node.tmpl
- deleteschedule.tmpl
- login.tmpl
- logs.tmpl
- masterinfo.tmpl
- 404.html
- cluster.tmpl
- clusterinfo.tmpl

[GIN-debug] GET /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (3 handlers)
[GIN-debug] HEAD /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (3 handlers)
[GIN-debug] GET / --> kube-install/lib.DaemonRun.func1 (3 handlers)
[GIN-debug] POST /login --> kube-install/lib.DaemonRun.func2 (3 handlers)
[GIN-debug] GET /clusterlist --> kube-install/lib.DaemonRun.func3 (3 handlers)
[GIN-debug] GET /clusterinfo --> kube-install/lib.DaemonRun.func4 (3 handlers)
[GIN-debug] GET /clusteradd --> kube-install/lib.DaemonRun.func5 (3 handlers)
[GIN-debug] GET /clusterdel --> kube-install/lib.DaemonRun.func6 (3 handlers)
[GIN-debug] GET /deleteschedule --> kube-install/lib.DaemonRun.func7 (3 handlers)
[GIN-debug] GET /masteradmin --> kube-install/lib.DaemonRun.func8 (3 handlers)
[GIN-debug] GET /masterinfo --> kube-install/lib.DaemonRun.func9 (3 handlers)
[GIN-debug] GET /nodeadmin --> kube-install/lib.DaemonRun.func10 (3 handlers)
[GIN-debug] GET /nodeinfo --> kube-install/lib.DaemonRun.func11 (3 handlers)
[GIN-debug] GET /nodeadd --> kube-install/lib.DaemonRun.func12 (3 handlers)
[GIN-debug] GET /tools --> kube-install/lib.DaemonRun.func13 (3 handlers)
[GIN-debug] GET /calendarscheduler --> kube-install/lib.DaemonRun.func14 (3 handlers)
[GIN-debug] GET /logs --> kube-install/lib.DaemonRun.func15 (3 handlers)
[GIN-debug] POST /install --> kube-install/lib.DaemonRun.func16 (3 handlers)
[GIN-debug] POST /rebuildmaster --> kube-install/lib.DaemonRun.func17 (3 handlers)
[GIN-debug] POST /delmaster --> kube-install/lib.DaemonRun.func18 (3 handlers)
[GIN-debug] POST /addnode --> kube-install/lib.DaemonRun.func19 (3 handlers)
[GIN-debug] POST /delnode --> kube-install/lib.DaemonRun.func20 (3 handlers)
[GIN-debug] POST /uninstall --> kube-install/lib.DaemonRun.func21 (3 handlers)
[GIN-debug] POST /deleteinstallschedule --> kube-install/lib.DaemonRun.func22 (3 handlers)
[GIN-debug] POST /toolswitch --> kube-install/lib.DaemonRun.func23 (3 handlers)
[GIN-debug] POST /sshkey --> kube-install/lib.DaemonRun.func24 (3 handlers)
[GIN-debug] GET /tty --> kube-install/lib.DaemonRun.func25 (3 handlers)
[GIN-debug] Listening and serving HTTP on 0.0.0.0:9080
2 changes: 1 addition & 1 deletion data/statistics/diskinfo.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
38
42
2 changes: 1 addition & 1 deletion data/statistics/k8snum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
0
2 changes: 1 addition & 1 deletion data/statistics/labellist.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
,,,,k8s-test-001
,,,,
2 changes: 1 addition & 1 deletion data/statistics/meminfo.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6
4
2 changes: 1 addition & 1 deletion data/statistics/nodenumlist.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
,,,,3
,,,,
2 changes: 1 addition & 1 deletion data/statistics/stuok.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1E+02
0E+00
2 changes: 1 addition & 1 deletion data/statistics/stuunkonw.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0E+00
1E+02
Loading

0 comments on commit c64e665

Please sign in to comment.