forked from kubernetes-sigs/kernel-module-management
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OCP-specific documentation (kubernetes-sigs#419)
- Loading branch information
Showing
7 changed files
with
124 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Troubleshooting | ||
|
||
## Using `oc adm must-gather` | ||
|
||
The `oc adm must-gather` is the preferred way to collect a support bundle and provide debugging information to Red Hat | ||
support. | ||
|
||
### For KMM | ||
|
||
```shell | ||
export MUST_GATHER_IMAGE=$(oc get deployment -n openshift-kmm kmm-operator-controller-manager -ojsonpath='{.spec.template.spec.containers[?(@.name=="manager")].env[?(@.name=="RELATED_IMAGES_MUST_GATHER")].value}') | ||
oc adm must-gather --image="${MUST_GATHER_IMAGE}" -- /usr/bin/gather | ||
``` | ||
|
||
### For KMM-Hub | ||
|
||
```shell | ||
export MUST_GATHER_IMAGE=$(oc get deployment -n openshift-kmm-hub kmm-operator-hub-controller-manager -ojsonpath='{.spec.template.spec.containers[?(@.name=="manager")].env[?(@.name=="RELATED_IMAGES_MUST_GATHER")].value}') | ||
oc adm must-gather --image="${MUST_GATHER_IMAGE}" -- /usr/bin/gather -u | ||
``` | ||
|
||
### Different namespace | ||
|
||
Use the `-n NAMESPACE` switch to specify a namespace if you installed KMM in a custom namespace. | ||
|
||
## Reading operator logs | ||
|
||
| Component | Command | | ||
|-----------|---------------------------------------------------------------------------------| | ||
| KMM | `oc logs -fn openshift-kmm deployments/kmm-operator-controller-manager` | | ||
| KMM-Hub | `oc logs -fn openshift-kmm-hub deployments/kmm-operator-hub-controller-manager` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
# Uninstalling | ||
|
||
## Using `kubectl` | ||
## If installed from the Red Hat catalog | ||
|
||
To uninstall KMM, either use the OpenShift console under "Operators" --> "Installed Operators" (preferred), or delete | ||
the `Subscription` resource in the KMM namespace. | ||
|
||
## If installed using `oc` | ||
|
||
```shell | ||
kubectl delete -k https://github.com/rh-ecosystem-edge/kernel-module-management/config/default | ||
oc delete -k https://github.com/rh-ecosystem-edge/kernel-module-management/config/default | ||
``` |