health
network-connectivity
Perform network health checks on resources pertaining to a IBM Software Hub deployment on a Red Hat OpenShift cluster. These checks include checking the network cluster operator, the pods in the openshift-sdn namespace, the podnetworkconnectivitycheck custom resource in the openshift-network-diagnostics namespace, and network access between the operator and operand namespaces. You must log in to the Red Hat OpenShift Container Platform as a cluster administrator to use this command.
Prerequisites
- Log in to the cluster.
-
Log in to Red Hat® OpenShift® Container Platform as a cluster administrator.
${OC_LOGIN}Remember:OC_LOGINis an alias for theoc logincommand. - Verify the config file.
-
A Kubernetes config file must be at either ~/.kube/config or ~/auth/kubeconfig for this command to work. The config file must have the target cluster as the current context.
Syntax
cpd-cli health network-connectivity \
--control_plane_ns=<project-cpd-inst-operands> \
[--include_ns=<instance-namespace-list>] \
[--save] \
[--verbose]
Arguments
The command has no arguments.
Options
| Option | Description |
|---|---|
--control_plane_ns |
The control plane namespace.
|
|
|
Display command
help.
|
--include_ns |
A comma-separated list of instance
namespaces to gather cpd-cli health info from.
|
--log-level |
The command log level.
|
--save |
Save output, resource YAML files, and pod container logs to the local file system.
|
--verbose |
Display detailed information about resources in table format.
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
cpd-cli health network-connectivity \
--control_plane_ns=<project-cpd-inst-operands>
Example output.
Network Cluster Operator Healthcheck
[SUCCESS...]
Pod Healthcheck
Checks if all relevant pods are up and running
[SUCCESS...]
PodNetworkConnectivityCheck Custom Resource Healthcheck
Checks if custom resources are in the desired state
[SUCCESS...]
Operator To Operand Pod Connection check
[SUCCESS...]