From 6f64224fcd43f43ba5739a706a495027483363e4 Mon Sep 17 00:00:00 2001 From: Rose Crisp Date: Fri, 17 Feb 2023 12:06:43 -0500 Subject: [PATCH 1/2] prob,solution --- ...3-02-17-dev-operator-problems-solutions.md | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 _drafts/2023-02-17-dev-operator-problems-solutions.md diff --git a/_drafts/2023-02-17-dev-operator-problems-solutions.md b/_drafts/2023-02-17-dev-operator-problems-solutions.md new file mode 100644 index 0000000..4907865 --- /dev/null +++ b/_drafts/2023-02-17-dev-operator-problems-solutions.md @@ -0,0 +1,50 @@ +--- +title: "Debugging Operators : Problems and Solutions" +linkTitle: "Debugging Operators : Problems and Solutions" +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 + ```` + + \ No newline at end of file From 46771174310674ca7cb5e8c13856251dbe33ae49 Mon Sep 17 00:00:00 2001 From: Rose Crisp Date: Fri, 17 Feb 2023 12:10:45 -0500 Subject: [PATCH 2/2] rephrase the title --- _drafts/2023-02-17-dev-operator-problems-solutions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_drafts/2023-02-17-dev-operator-problems-solutions.md b/_drafts/2023-02-17-dev-operator-problems-solutions.md index 4907865..b530b51 100644 --- a/_drafts/2023-02-17-dev-operator-problems-solutions.md +++ b/_drafts/2023-02-17-dev-operator-problems-solutions.md @@ -1,6 +1,6 @@ --- -title: "Debugging Operators : Problems and Solutions" -linkTitle: "Debugging Operators : Problems and Solutions" +title: "Troubleshooting Operators with Issues and Resolutions" +linkTitle: "Troubleshooting Operators" date: 2022-02-17 categories: documentation weight: 4