Shield サービス

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

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

Shieldのインストール

このサービスは、Shieldのインストールに使用されます。

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

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

使用例

sudo ./install-shield.sh -p <PASSWORD> [-l|--label] [-R|--ranchercli] [-f|--force]

引数:

-p: Shield repository requires a valid **password**. Contact Ericom Shield Professional Services to get a valid password and replace it in the command.
-l: Set Labels
-R: Run the RancherCLI and create the cluster
-f: Force Option

サーバーを準備する

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

バイナリ ファイルを取得します。

curl -s -L -o shield-prepare-servers https://github.com/EricomSoftwareLtd/Shield/releases/download/shield-prepare-servers-Rel-20.01.2/shield-prepare-servers
    chmod +x shield-prepare-servers
    ./shield-prepare-servers [-u <USER>] <SERVERIPADDRESSES>

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

例:

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

参考

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

Shield リポジトリの追加

このサービスは、Shield リポジトリを取得するために使用されます。

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

curl -s -o add-shield-repo.sh  https://raw.githubusercontent.com/EricomSoftwareLtd/Shield/Rel-20.01.2/Kube/scripts/add-shield-repo.sh
chmod +x add-shield-repo.sh

使用例

./add-shield-repo.sh -p <PASSWORD> [-v|--version] <version-name> [-r|--releases] [-h|--help]

引数:

-p: Shield repository requires a valid **password**. Contact Ericom Shield Professional Services to get a valid password and replace it in the command.
-v: Install a specific version from repo (e.g. version-name = rel1911 will install the Rel-20.01.2/ repository)
-r: List all the available releases

Shieldの展開

このサービスは、Shield の開始および実行に使用されます。

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

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

使用例

./deploy-shield.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

Shieldの削除

このサービスは、Shieldを停止して削除するために使用されます。

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

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

使用例

./delete-shield.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