You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2022/10/06 07:37:00 UTC

[jira] [Assigned] (KARAF-7549) CrashLoopBackOff in kubernetes pod

     [ https://issues.apache.org/jira/browse/KARAF-7549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-7549:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré

> CrashLoopBackOff in kubernetes pod
> ----------------------------------
>
>                 Key: KARAF-7549
>                 URL: https://issues.apache.org/jira/browse/KARAF-7549
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.6
>            Reporter: Iurii
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>         Attachments: DockerFileLogTrace.txt, Dockerfile, docker.log, standalone.txt
>
>
> After migration from Karaf *4.2.0* to *4.3.6* I was able to run application via karaf.bat and via docker but have some issue with running application in kubernetes. I attached two log files:
>  * standalone.txt - run via karaf.bat
>  * docker.txt run via kubernetes
> As you can see for some reason *FelixShutdown* process started destroying blueprint bundles (lines 310-312) in dockerlog file and kubernetes pod was marking as {*}CrashLoopBackOff{*}: 
> {noformat}
> org.apache.aries.blueprint.core - 1.10.3 | Destroying container for blueprint bundle org.apache.karaf.shell.core/4.3.6
> org.apache.aries.blueprint.core - 1.10.3 | Destroying container for blueprint bundle org.apache.aries.blueprint.cm/1.3.2
> org.apache.aries.blueprint.core - 1.10.3 | Destroying container for blueprint bundle org.apache.aries.blueprint.core/1.10.3
> {noformat}
> I used below command to run application in kubernetes:
> {noformat}
> kubectl run karaf --image=eu.gcr.io/container/eco:1.7.60 --port=8181
> {noformat}
> I also attached dockerfile.
>  
> My configuration:
> {noformat}
> C:\Users\test>java -version
> java version "1.8.0_202"
> Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
> Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
> C:\Users\test>kubectl version
> WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
> Client Version: version.Info\{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"windows/amd64"}
> Kustomize Version: v4.5.4
> Server Version: version.Info\{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:23:26Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}
> C:\Users\test>kubectl run karaf --image=eu.gcr.io/container/eco:1.7.60 --port=8181
> pod/karaf created
> C:\Users\test>kubectl get pods
> NAME    READY   STATUS             RESTARTS      AGE
> karaf   0/1     CrashLoopBackOff   3 (29s ago)   2m7s
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)