Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions _drafts/2023-02-17-dev-operator-problems-solutions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: "Troubleshooting Operators with Issues and Resolutions"
linkTitle: "Troubleshooting Operators"
date: 2022-02-17
categories: documentation
weight: 4
description: >
A compilation of issues and resolutions encountered during the creation and troubleshooting of operators.
---

* Issue

Operator Controller-manager pod keeps crashlooping with OOMkilled

* Resolution

Increase the memory for the controller-mananger pod by editing the operator CSV:

````
resources:
limits:
cpu: 200m
memory: 400Mi <------ Increased to 400Mi
requests:
cpu: 200m
memory: 400Mi <------ Increased to 400Mi
````

* Issue

Docker image run on Openshift with the following error:
````
exec /srv/app/entrypoint.sh: exec format error
````
* Resolution

Review the Docker image, as it may have been built on a device with an architecture that differs from that of Openshift.

````
docker image inspect cloudtruth/kubetruth:1.2.2-redhat.test.2 | grep Architecture
“Architecture”: “arm64",
````

Verify if the architecture of the node matches that of the Docker image.
````
oc get node ip-####.us-west-2.compute.internal -oyaml | grep architecture
architecture: amd64
````