IBM® Guardium® Insights 通过 OpenShift® Container Platform 部署在 IBM Cloud Pak® 基础服务上。
许多产品利用 Cloud Pak 基础服务 ,您可能已安装该服务。 如果已安装 Cloud Pak 基础服务 ,那么可以跳过此任务。
程序
- 登录到 OpenShift 集群实例:
oc login -u <KUBE_USER> -p <KUBE_PASS> [--insecure-skip-tls-verify=true]
例如
oc login api.example.ibm.com:6443 -u kubeadmin -p xxxxx-xxxxx-xxxxx-xxxxx
- 为 Cloud Pak 基础服务创建名称空间。 建议使用的名称空间为
ibm-common-services。
oc create namespace ibm-common-services
- 选择要使用的 CASE 版本:
export CASE_ARCHIVE=ibm-guardium-insights-<GI Case version>.tgz
例如,要使用 V 2.2.0,请指定 2.2.0 捆绑软件文件:
export CASE_ARCHIVE=ibm-guardium-insights-2.2.0.tgz
- 安装 Cloud Pak 基础服务 目录。
对于 Guardium Insights 3.2.10 和更高版本:oc ibm-pak launch $CASE_NAME \
--version $CASE_VERSION \
--namespace ibm-common-services \
--inventory ibmCommonServiceOperatorSetup \
--action install-catalog \
--tolerance 1 \
--args "--registry icr.io --recursive --inputDir ${LOCAL_CASE_DIR}"
对于 Guardium Insights 3.2.8 和更低版本:cloudctl case launch \
--case ${LOCAL_CASE_DIR}/${CASE_ARCHIVE} \
--namespace ibm-common-services \
--inventory ibmCommonServiceOperatorSetup \
--action install-catalog \
--tolerance 1 \
--args "--registry icr.io --inputDir ${LOCAL_CASE_DIR}"
- 检查 pod 和目录源状态:
oc get pods -n openshift-marketplace
oc get catalogsource -n openshift-marketplace
您收到的输出将类似于:
NAME READY STATUS RESTARTS AGE
opencloud-operators-6czqp 1/1 Running 0 49s
NAME DISPLAY TYPE PUBLISHER AGE
opencloud-operators IBMCS Operators grpc IBM 52s
- 安装 Cloud Pak 基础服务 操作程序。
导出
ICS_SIZE:#Set ICS_SIZE to medium if installing a GuardiumInsights size of xsmall or small
#Set ICS_SIZE to large if installing a GuardiumInsights size of med (medium) or higher
$ export ICS_SIZE=<ics_size>
对于
Guardium Insights 3.2.10 和更高版本:
oc ibm-pak launch $CASE_NAME \
--version $CASE_VERSION \
--namespace ibm-common-services \
--inventory ibmCommonServiceOperatorSetup \
--tolerance 1 \
--action install-operator \
--args "--size ${ICS_SIZE} --inputDir ${LOCAL_CASE_DIR}"
或者,对于
Guardium Insights 3.2.8 和更低版本:
cloudctl case launch \
--case ${LOCAL_CASE_DIR}/${CASE_ARCHIVE} \
--namespace ibm-common-services \
--inventory ibmCommonServiceOperatorSetup \
--tolerance 1 \
--action install-operator \
--args "--size ${ICS_SIZE} --inputDir ${LOCAL_CASE_DIR}"
其中, ICS_SIZE 必须设置为 medium 或 large ( Guardium Insights 生产的大小)。 对于小型或超小型部署,请将大小设置为 medium。 对于中型或大型部署,请将大小设置为 large。
安装操作程序后,请确保所有 Cloud Pak 基础服务 pod 都处于 Running 或 Completed 状态 (请注意,这应该需要 10 到 20 分钟才能完成):
oc get pods -n ibm-common-services
- 用于访问控制台的缺省用户名为
admin。 要检索密码,请发出以下命令:
oc -n ibm-common-services get secret platform-auth-idp-credentials -o jsonpath='{.data.admin_password}' | base64 -d
您接收到的输出 (例如 EwK9dj_example_password_lZSzVsA) 是用于访问控制台的密码。 要更改默认用户名( admin )或密码,请参阅更改集群管理员访问凭证。
在您安装 Cloud Pak 基础服务后,您可以继续安装 Guardium Insights。