Paragon Insightsのアンインストールまたは再設定
このセクションでは、次のタスクについて説明します。
Paragon Insightsのアンインストール
UbuntuでのParagon Insights
UbuntuでParagon Insights(旧HealthBot)をアンインストールするには、次のコマンドを入力します。
$ sudo apt-get [remove|purge] healthbot
および purge
オプションはremove
どちらも同じアクションを実行します。いずれかを使用して、Paragon Insightsをアンインストールできます。例えば:
$ sudo apt-get purge healthbot
CentOS上のParagon Insights
CentOSでParagon Insightsをアンインストールすると、一部のパッケージファイルが見つからないことを示す警告が表示される場合があります。これらの警告は無視しても問題ありません。
CentOSでParagon Insightsをアンインストールするには:
SELinux モードを確認し、enforcing に設定されている場合は permissive に変更します。これは、アンインストール手順を実行できるようにするために必要です。
$ getenforce Enforcing $ sudo setenforce 0 $ getenforce Permissive
次の形式を使用して、Paragon Insightsパッケージとそのコンポーネントをアンインストールします。
$ sudo yum remove <healthbot-package-name>
例えば:
$ yum list installed | grep healthbot healthbot.noarch 2.0-2.1 installed $ sudo yum remove healthbot.noarch sudo yum remove healthbot.noarch Loaded plugins: fastestmirror Resolving Dependencies --> Running transaction check ---> Package healthbot.noarch 0:2.0-2.1 will be erased … <answer ‘y’ to prompts as needed> … Running transaction … Removed healthbot Erasing : healthbot-2.0-2.1.noarch 1/1 Verifying : healthbot-2.0-2.1.noarch 1/1 Removed: healthbot.noarch 0:2.0-2.1 Complete!
手記:この手順では、インストール時にParagon Insightsにインストールされたすべてのソフトウェア依存関係がアンインストールされるわけではありません。
該当する場合は、SELinux モードを enforcing にリセットします。
$ getenforce Permissive $ sudo setenforce 1 $ getenforce Enforcing
Paragon Insightsの再設定
healthbot reconfigure
コマンドを使用して、次のことを行います。
単一ノード インストールからマルチノード インストールに、またはその逆に変更する
Paragon InsightsサーバーのIPアドレスを変更する
SSL証明書を変更する
例えば:
$ sudo healthbot reconfigure ℹ️ Please have a look at below messages and acknowledge them to proceed: 1. Paragon Insights free model/freemium license tier is not available in this version. A valid license (trial or commercial) is needed to use Paragon Insights features. 2. The format of license key has been changed due to business reasons in this version. The system may have contained the older format of license keys, which are not valid now. You can log into the Juniper Agile Licensing Portal and choose to revoke the existing license and then re-activate the license to a new software version (that will provide you with a new format license key). This newly activated license can be added to the system post upgrade. 👨 Do you want to proceed? [Y/n] Y 👨 Do you want to reconfigure SSL certificates? [y/N]y 👨 Do you want system to create and use a self-signed SSL certificate? [Y/n] Y [executing ..] openssl req -nodes -x509 -newkey rsa:4096 -keyout /var/local/healthbot/certs/key.pem -out /var/local/healthbot/certs/cert.pem -days 36525 -subj "/C=US/ST=Ca/L=Svl/O=Juniper Networks/OU=Org/CN=localhost" -extensions SAN -reqexts SAN -config /tmp/ssl.conf [executing ..] rm -f /tmp/ssl.conf 📝 Creating /var/local/healthbot/healthbot.conf config file.. ℹ️ Checking space for docker images 🐳 Loading docker images. This may take some time.. 100%|███████████████████████████████████████████████████████████████████| 50/50 [01:43<00:00, 2.08s/it] ✅ Docker images successfully loaded ✅ Done making directories ℹ️ User has quit previous setup to reset iptables. Ignoring API server unreachability. 👨 Do you want to reconfigure kubernetes cluster? [y/N] y ╭────────────────────────────────────╮ │ │ │ Installing new Kubernetes cluster │ │ │ ╰────────────────────────────────────╯ ╭─────────────────────────────────────────╮ │ │ │ Existing cluster details found │ │ Master nodes: ['10.xxx.165.xxx'] │ │ Worker nodes: [] │ │ Master scheduling: True │ │ Ingress virtual IP: ['10.102.xxx.xxx'] │ │ │ ╰─────────────────────────────────────────╯ 👨 Do you want to use the same cluster details? [Y/n] Y ℹ️ Using pod CIDR: 10.xxx.0.0/16 ℹ️ Using service CIDR: 10.xx.0.0/12 ╭───────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Pod CIDR and Service CIDR can be modified using one of the below approaches │ │ Interactive installation : │ │ - Set the environment variables "HB_POD_CIDR" and "HB_SERVICE_CIDR" │ │ - For non-root user, Use 'sudo -E' instead of 'sudo' to use the │ │ existing environment variables │ │ Silent installation : │ │ - Set the "pod_cidr" and "service_cidr" values in "healthbot.conf" file │ │ │ │ Post changing the configuration, stop all the healthbot services and reconfigure │ │ healthbot using "healthbot reconfigure" command. │ │ │ ╰───────────────────────────────────────────────────────────────────────────────────╯ ℹ️ Offline package not found ✅ Created inventory file ✅ Prepared cluster for new installation ✅ All node(s) validated successfully ✅ Installed Kubernetes cluster successfully ✅ Successfully executed post-install tasks on all host(s) ℹ️ Copying /etc/kubernetes/admin.conf directory to /var/local/healthbot/k8s.conf on master.. ℹ️ Finished copying. ℹ️ Patching docker registry: key=, value=, operator=Exists, effect=NoSchedule ℹ️ Patching docker registry: key=healthbot.juniper.net/dedicated, value=tsdb, operator=Equal, effect=NoExecute [executing ..] kubectl label nodes 10.xxx.xxx.215 healthbot.juniper.net/tsdb=10-102-165-215 --overwrite ✅ Copied helper files to input directory ⌛ Pushing images to registry ✅ Registry is ready 100%|███████████████████████████████████████████████████████████████████████| 50/50 [03:03<00:00, 3.67s/it] ✅ Successfully pushed images to registry ✅ Installation successful. Please run 'healthbot start' ——————————————————————————————————————————————————————————————————————
構成ファイルを使用してParagon Insightsを再設定することもできます。例えば:
sudo healthbot reconfigure -c /path/configuration-file.conf
この例では、Paragon Insightsは構成ファイルで定義されている設定に再設定されています。構成ファイルの詳細については、「 サイレントインストーラの使用」を参照してください。