Skip to content

Commit f01cd46

Browse files
Add a note about recovering from hung CRDs
1 parent a0ba310 commit f01cd46

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/send-data/kubernetes/troubleshoot-collection.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,30 @@ It means that Custom Resource Definition has not been applied by Helm. It is [He
10051005
kubectl apply -f https://raw.githubusercontent.com/open-telemetry/opentelemetry-helm-charts/opentelemetry-operator-0.44.0/charts/opentelemetry-operator/crds/crd-opentelemetry.io_opampbridges.yaml
10061006
```
10071007

1008+
### Hung/Stuck OpenTelemetryCollector K8s CRD
1009+
1010+
To patch and delete CustomResourceDefinitions in Kubernetes
1011+
1012+
```shell
1013+
kubectl patch crd/opentelemetrycollectors.opentelemetry.io -p '{"metadata":{"finalizers":[]}}' --type=merge
1014+
```
1015+
1016+
Confirm that the finalizer has been removed
1017+
1018+
```shell
1019+
kubectl get opentelemetrycollectors.opentelemetry.io -o yaml > my-resource.yaml
1020+
```
1021+
1022+
If the patch command doesn't work, please edit the CRD to remove the finalizer
1023+
1024+
```shell
1025+
kubectl edit crd opentelemetrycollectors.opentelemetry.io
1026+
```
1027+
1028+
```shell
1029+
kubectl delete crd/opampbridges.opentelemetry.io
1030+
```
1031+
10081032
## Using Sumo Logic Mock
10091033

10101034
Sumo Logic Mock is debugging tool, which helps to see what exactly is being sent from the Sumo Logic Collection to Sumo Logic. It may help with finding if there are any missing metrics, logs, traces, or parts of them like labels or metadata.

0 commit comments

Comments
 (0)