$ oc import-image is/must-gather -n openshift
You can use the must-gather tool to collect data about the Custom Metrics Autoscaler Operator and its components, including the following items:
The openshift-keda namespace and its child objects.
The Custom Metric Autoscaler Operator installation objects.
The Custom Metric Autoscaler Operator CRD objects.
When troubleshooting issues with the Custom Metrics Autoscaler Operator, you can use the must-gather tool to collect diagnostic information. The tool gathers resource definitions, pod logs, and configuration details that help identify problems or can be shared with Red Hat Support for assistance.
|
The standard OKD |
You are logged in to OKD as a user with the cluster-admin role.
The OKD CLI (oc) installed.
Navigate to the directory where you want to store the must-gather data.
|
If your cluster is using a restricted network, you must take additional steps. If your mirror registry has a trusted CA, you must first add the trusted CA to the cluster. For all clusters on restricted networks, you must import the default
|
Perform one of the following:
To get only the Custom Metrics Autoscaler Operator must-gather data, use the following command:
$ oc adm must-gather --image="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \
-n openshift-marketplace \
-o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
The custom image for the must-gather command is pulled directly from the Operator package manifests, so that it works on any cluster where the Custom Metric Autoscaler Operator is available.
To gather the default must-gather data in addition to the Custom Metric Autoscaler Operator information:
Use the following command to obtain the Custom Metrics Autoscaler Operator image and set it as an environment variable:
$ IMAGE="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \
-n openshift-marketplace \
-o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
Use the oc adm must-gather with the Custom Metrics Autoscaler Operator image:
$ oc adm must-gather --image-stream=openshift/must-gather --image=${IMAGE}
└── openshift-keda
├── apps
│ ├── daemonsets.yaml
│ ├── deployments.yaml
│ ├── replicasets.yaml
│ └── statefulsets.yaml
├── apps.openshift.io
│ └── deploymentconfigs.yaml
├── autoscaling
│ └── horizontalpodautoscalers.yaml
├── batch
│ ├── cronjobs.yaml
│ └── jobs.yaml
├── build.openshift.io
│ ├── buildconfigs.yaml
│ └── builds.yaml
├── core
│ ├── configmaps.yaml
│ ├── endpoints.yaml
│ ├── events.yaml
│ ├── persistentvolumeclaims.yaml
│ ├── pods.yaml
│ ├── replicationcontrollers.yaml
│ ├── secrets.yaml
│ └── services.yaml
├── discovery.k8s.io
│ └── endpointslices.yaml
├── image.openshift.io
│ └── imagestreams.yaml
├── k8s.ovn.org
│ ├── egressfirewalls.yaml
│ └── egressqoses.yaml
├── keda.sh
│ ├── kedacontrollers
│ │ └── keda.yaml
│ ├── scaledobjects
│ │ └── example-scaledobject.yaml
│ └── triggerauthentications
│ └── example-triggerauthentication.yaml
├── monitoring.coreos.com
│ └── servicemonitors.yaml
├── networking.k8s.io
│ └── networkpolicies.yaml
├── openshift-keda.yaml
├── pods
│ ├── custom-metrics-autoscaler-operator-58bd9f458-ptgwx
│ │ ├── custom-metrics-autoscaler-operator
│ │ │ └── custom-metrics-autoscaler-operator
│ │ │ └── logs
│ │ │ ├── current.log
│ │ │ ├── previous.insecure.log
│ │ │ └── previous.log
│ │ └── custom-metrics-autoscaler-operator-58bd9f458-ptgwx.yaml
│ ├── custom-metrics-autoscaler-operator-58bd9f458-thbsh
│ │ └── custom-metrics-autoscaler-operator
│ │ └── custom-metrics-autoscaler-operator
│ │ └── logs
│ ├── keda-metrics-apiserver-65c7cc44fd-6wq4g
│ │ ├── keda-metrics-apiserver
│ │ │ └── keda-metrics-apiserver
│ │ │ └── logs
│ │ │ ├── current.log
│ │ │ ├── previous.insecure.log
│ │ │ └── previous.log
│ │ └── keda-metrics-apiserver-65c7cc44fd-6wq4g.yaml
│ └── keda-operator-776cbb6768-fb6m5
│ ├── keda-operator
│ │ └── keda-operator
│ │ └── logs
│ │ ├── current.log
│ │ ├── previous.insecure.log
│ │ └── previous.log
│ └── keda-operator-776cbb6768-fb6m5.yaml
├── policy
│ └── poddisruptionbudgets.yaml
└── route.openshift.io
└── routes.yaml