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

Improve nginx deployment #4085

Merged

Conversation

gbenhaim
Copy link
Member

  1. For 60 seconds, check if no containers in the pod crash loop and only then declare that the pod ready.

  2. Add readiness probe. Traffic will be forwarded only to pods that pass the readiness check.

  3. Adjust probes to start only after 60 seconds to match the change mention in 1.

  4. During upgrade, allow an additional pod to be scheduled for the new replicaset.

  5. Don't allow the deployment to have less that 3 pod ready, even during upgrade.

1. For 60 seconds, check if no containers in the pod crash loop and
only then declare that the pod ready.

2. Add readiness probe. Traffic will be forwarded only to pods that
pass the readiness check.

3. Adjust probes to start only after 60 seconds to match the change
mention in 1.

4. During upgrade, allow an additional pod to be scheduled for the
new replicaset.

5. Don't allow the deployment to have less that 3 pod ready, even during
upgrade.

Signed-off-by: gbenhaim <gbenhaim@redhat.com>
Copy link
Member

@filariow filariow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

@sadlerap sadlerap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🎉

Copy link
Contributor

@hugares hugares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

@dperaza4dustbit dperaza4dustbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link

openshift-ci bot commented Jul 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dperaza4dustbit, filariow, gbenhaim, hugares, sadlerap

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sadlerap
Copy link
Contributor

/test appstudio-e2e-tests

@filariow
Copy link
Member

/retest

Copy link

openshift-ci bot commented Jul 16, 2024

@gbenhaim: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/appstudio-hac-e2e-tests eadb1ef link false /test appstudio-hac-e2e-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit b4c0e64 into redhat-appstudio:main Jul 16, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants