-
Notifications
You must be signed in to change notification settings - Fork 4
Kubeclarity startup dependencies can be Improved to a graceful handling and prevent pods from crashing #658
Comments
@pkalapat thanks for the report. Can you share the logs from the crashing pod Not sure how |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been stale for 14 days and is now closed due to inactivity, if this issue is still relevant please re-open this issue, or open a new issue. |
This issue has been automatically marked as stale because it has no recent activity in the last 60 days. It will be closed in 14 days if no further activity occurs. If this issue is still relevant please leave a comment to let us know and the stale label will be automatically removed. Thank you for your contributions. |
This issue has been marked |
It looks like we need an init container to wait for postgres to be ready and then start the main kubeclarity backend container, this will prevent crashloops on the initial installation. |
I've added a Job as part of my deployment to run the postgres db-init. I'll work on submitting a PR and add something like this into the Helm chart as an optional init container. |
Is your feature request related to a problem? Please describe.
kubeclarity pods crash during installation due to postgress dependency. This can be improved to gracefully handle dependency and prevent pods from crashing
Describe the solution you'd like
kubeclarity kubeclarity-kubeclarity-8994b7966-vr4t6 ● 0/1 0 Init:2/3 10.0.158.68 ip-10-0-151-209.us-east-2.compute.internal 2m47s │
│ kubeclarity kubeclarity-kubeclarity-grype-server-c8fc5847f-zk8h4 ● 0/1 4 CrashLoopBackOff 10.0.102.137 ip-10-0-73-177.us-east-2.compute.internal 2m47s │
│ kubeclarity kubeclarity-kubeclarity-postgresql-0 ● 1/1 0 Running 10.0.148.40 ip-10-0-151-209.us-east-2.compute.internal 2m47s │
│ kubeclarity kubeclarity-kubeclarity-sbom-db-687d5df5f5-7ltxl ● 1/1 0 Running 10.0.74.175 ip-10-0-73-177.us-east-2.compute.internal 2m47s │
│ │
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: