3scale-must-gather
is a tool built on top of OpenShift must-gather
that expands its capabilities to gather 3scale information.
3scale-must-gather
also borrows logic and structure from the following similar images:
oc adm must-gather --image=quay.io/3scale/must-gather
The command above will create a local directory with a dump of the 3scale state. Note that this command will only get data related to the 3scale part of the OpenShift cluster.
You will get a dump of:
- The 3scale Operator namespaces (and its children objects)
- i.e. Output from command
oc adm inspect ns/<namespace>
for all namespaces that contain a APIManager resource
- i.e. Output from command
- The 3scale APICast Gateway Operator namespaces (and its children objects)
- i.e. Output from command
oc adm inspect ns/<namespace>
for all namespaces that contain a APIcast resource
- i.e. Output from command
- All 3scale APIManager, APIManagerBackup, APIManagerRestore, and APIcast custom resources
- i.e. Output from command
oc adm inspect --all-namespaces <resource>
for all 3scale resources above
- i.e. Output from command
- All of the information for the Openshift Nodes in the cluster
- i.e.
oc adm inspect node/<node-name>
- i.e.
- The APIcast configurations fetched from both the Admin Portal and the APIcast gateway
In order to get data about other parts of the cluster (not specific to 3scale) you should
run oc adm must-gather
(without passing a custom image). Run oc adm must-gather -h
to see more options.
You can build the image locally using the Dockerfile included.
- Build the image
docker build -t 3scale-must-gather .
- Create the image stream
oc create imagestream 3scale-must-gather
- Tag image with internal registry domain
docker tag 3scale-must-gather <openshift-registry-domain>/<namespace>/3scale-must-gather
- Login to the openshift internal registry
If using crc or any local environment where
docker login -u `oc whoami` -p `oc whoami -t` <openshift-registry-domain>
oc whoami
returnskube:admin
, you will need to change the-u
option tokubeadmin
. - Push the image to the internal registry
docker push <openshift-registry-domain>/<namespace>/3scale-must-gather
- Test the image
oc adm must-gather --image-stream=<namespace>/3scale-must-gather
- Build and tag the image for quay.io
docker build -t 3scale-must-gather .
- Tag image for quay.io
Version should only include major.minor (i.e. 2.9)
docker tag 3scale-must-gather quay.io/3scale/must-gather:latest docker tag 3scale-must-gather quay.io/3scale/must-gather:<version>
- Login to the quay.io registry
docker login -u `<username` -p `<token>` quay.io
- Push the image to the quay.io registry
docker push quay.io/3scale/must-gather:latest docker push quay.io/3scale/must-gather:<version>