Shield サービス

Shieldには次のサービスが含まれます。

インストール、既存のクラスターの変更、バージョンのアップグレードなど、さまざまなプロセスで必要に応じてこれらのサービスを使用してください。

Shieldのインストール

このサービスは、Shieldのインストールまたは新しいバージョンへのアップグレードに使用されます。

install-shield.shスクリプトを取得します。

curl -s -o install-shield.sh https://raw.githubusercontent.com/EricomSoftwareLtd/Shield/master/Kube/scripts/install-shield.sh
chmod +x install-shield.sh

使用例

sudo ./install-shield.sh -p <PASSWORD> [-v|--version <version-name>] [-r|--releases] [--registry <RegistryIPAddress:Port>] [-n|--namespase <NAMESPACE> (<NAMESPACE>)] [-l|--label] [-h|--help]

引数:

-p: Shield repository requires a valid password. Contact Ericom Shield Professional Services to get a password and replace it in the command.
[-v|--version] <version-name>: Install a specific version. The version name format is: Rel-yy.mm.xxx (e.g. Rel-20.03.641)
[-r|--releases]: Display the list of the 3 latest versions that can be installed
[--registry < RegistryIPAddress:port>]: Offline installation only. Use a shield registry for docker images
[-n|--namespace <NS> (<NS>)]: Install only the specified namespace(s). Keep other namespaces unchanged
[-l|--label]: Set Labels
[-h|--help]: display the options menu

サーバーを準備する

このサービスは、サーバーノードをクラスターに参加させる前に準備します。 OS設定を構成し、Dockerをインストールするなど。

使用例

./shield-prepare-servers [-u <USER>] <ServerIPAddress(s)>

<ServerIPAddress(s)>は、サーバーノードのIPアドレスを表します。複数のIPアドレスをスペース(" ")で区切って入力できます。

引数:

[-u|--user]: a username to use to connect to a node via SSH (should be the same on all the nodes)
[--offline-mode]: Do not execute tasks that require Internet Connection
[--offline-registry] <address:port>: IP address and port of the Offline Registry

例:

sudo ./shield-prepare-servers -u ericom xx.xx.xx.xx yy.yy.yy.yy zz.zz.zz.zz

または、オフラインの場合、

./shield-prepare-servers -u ericom --offline-mode --offline-registry vv.vv.vv.vv:5000 xx.xx.xx.xx yy.yy.yy.yy zz.zz.zz.zz)

参考

カーネルは、このプロセス中に更新される可能性があります (必要な場合)。

Shieldの再起動

Shield を再起動するには、/ericomshield フォルダーの下にある stop.shstart.sh スクリプトを使用します。最初のスクリプトは、すべてのShield namespaceを停止して削除し、2 番目のスクリプトは、それらを新規に実行します。

使用例

stop.sh [-n|--namespace <NAMESPACE>] [-s|--silent] [-k|--keep-namespace] [-h|--help]

引数:

-n: Delete a specific namespace: shield-management, shield-proxy, shield-farm, shield-elk
-s: Silent: do not ask for confirmation)
-k: Skip deleting a specific namespace

使用例

start.sh [-n|--namespace <NAMESPACE>] [-l|--label] [-o|--overwrite] [-f|--force] [-h|--help]

引数:

-n: Deploy a specific namespace: shield-management, shield-proxy, shield-farm, shield-elk
-l: Set Labels
-f: Force Option
-o: Overwrite yaml files