0

In high level: When I add a sidecar container to the pod the app container can't find the jar file in the home folder then the container is crashed.

Details I have a pod that consists of two containers. App container and sidecar container.

The sidecar container is a simple python app that invokes http requests to the app container every x sec. The sidecar doesn't use any unique settings(volume, configmap etc)

Since I added the sidecar I got an error that the app container can't find the JAR file on the home folder which cause the app container to crash.

The questions are:

  1. Is the filesystem shared between the sidecar and the app container?
  2. What can be the reason the app container filesystem has been impacted by the sidecar?
  3. About troubleshooting - Due that the app container has been crashed immediately after the pod deployed i can't log in into the app container to look at the filesystem and investigate the issue. What is the best way to check what is happen inside the app ciontainer?

Any suggestions? Thanks

Dudi
  • 1
  • 1
  • The filesystems are not shared between the two containers absent an explicit volume mount. Does this _need_ to be a sidecar container, or can you run it in a separate Deployment? Do you have a [mcve]? – David Maze Jan 19 '23 at 12:03

0 Answers0