Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment not progressing #1020

Open
antwacky opened this issue Sep 23, 2024 · 3 comments
Open

Deployment not progressing #1020

antwacky opened this issue Sep 23, 2024 · 3 comments
Labels
helping with an issue Debugging happening to identify the problem

Comments

@antwacky
Copy link

I'm just wondering what the expected next step is when a deployment fails with the 'deployment not progressing' error.

I get this error when a deployment pod is continually crashing from a previous Kapp deployment and needs a change to bring it back to life.

I expected that once I ran a new Kapp deployment (with an updated config map for the pod, that should resolve the issue) that Kapp would update the config map, and the deployment would then restart.

As it is, Kapp exits immediately complaining that the deployment is not progressing.

What is the recommended approach in this situation?

@antwacky antwacky added the carvel triage This issue has not yet been reviewed for validity label Sep 23, 2024
@praveenrewar
Copy link
Member

Hey @antwacky! Could you share the deploy output that you are seeing? And could you share what you mean when you say "an updated config map for the pod", how was this change applied?

@antwacky
Copy link
Author

Hi, thanks for the reply. I get the below error:

kapp: Error: waiting on reconcile deployment/app-service (apps/v1) namespace: my-apps:
  Finished unsuccessfully (Deployment is not progressing: ProgressDeadlineExceeded (message: ReplicaSet "app-service-58586c5c4b" has timed out progressing.))

The deployment mentioned in the output is in CrashLoopBackOff because the ConfigMap from which it reads it's configuration is incorrect.

I then update the applications ConfigMap manifest, and run the kapp deploy again and get the same error straight away.

I expected kapp to update the ConfigMap inline with the changes, then the deployment to restart.

Hope that makes sense!

@praveenrewar
Copy link
Member

Could you share how the ConfigMap is being referenced by the Deployment?
You might be looking for versioned resources, once you add a versioned annotation to the ConfigMap, whenever it is updated, it will also updated the Deployment and you will see kapp updating the Deployment after updating the ConfigMap.

@renuy renuy added helping with an issue Debugging happening to identify the problem and removed carvel triage This issue has not yet been reviewed for validity labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helping with an issue Debugging happening to identify the problem
Projects
Status: To Triage
Development

No branches or pull requests

3 participants