Skip to content

feat: Add startup, readiness, and liveness probes to K8s apps #3211

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

Merged
merged 1 commit into from
May 16, 2025

Conversation

blarghmatey
Copy link
Member

@blarghmatey blarghmatey commented May 14, 2025

What are the relevant tickets?

N/A

Description (What does it do?)

Adds startup, readiness, and liveness probes to our Django K8s apps

Screenshots (if appropriate):

  • Desktop screenshots
  • Mobile width screenshots

How can this be tested?

Apply it to MITx Online or Learn in CI and verify that the app runs and that the probes are happy.

Additional Context

We currently experience temporary 502s from the applications while they are doing a deployment rollout. This adds startup, readiness, and liveness checks to the pods to ensure that they are ready to serve traffic before they get incorporated into their corresponding service. This depends on upstream changes in the applications in PRS:

@blarghmatey blarghmatey requested review from Ardiea and Copilot May 14, 2025 18:28
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds startup, readiness, and liveness probes to our Django Kubernetes applications by updating the Pulumi configurations, and it enhances method documentation with descriptive docstrings.

  • Adds new probe configurations in the application's initialization and updates for security group and application configurations.
  • Introduces clear docstrings for validators and resource initializations to improve code readability.

@blarghmatey blarghmatey force-pushed the olapp_k8s_probes branch 2 times, most recently from cf06cdf to 2990580 Compare May 16, 2025 18:12
We currently experience temporary 502s from the applications while they are doing a
deployment rollout. This adds startup, readiness, and liveness checks to the pods to
ensure that they are ready to serve traffic before they get incorporated into their
corresponding service. This depends on upstream changes in the applications in PRS:
- mitodl/mit-learn#2247
- mitodl/mitxonline#2652
@blarghmatey blarghmatey merged commit a8fcefc into main May 16, 2025
4 of 5 checks passed
@blarghmatey blarghmatey deleted the olapp_k8s_probes branch May 16, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants