Skip to content

Add Jenny's Helm chart#5

Open
claudusd wants to merge 16 commits into
mainfrom
jenny/improve
Open

Add Jenny's Helm chart#5
claudusd wants to merge 16 commits into
mainfrom
jenny/improve

Conversation

@claudusd
Copy link
Copy Markdown
Collaborator

This PR add the Helm chart from Jenny. A Django base app.

@claudusd claudusd requested a review from wilbrdt May 15, 2024 12:38
@claudusd claudusd changed the title Improve jenny chart Add Jenny's Helm chart May 15, 2024
Copy link
Copy Markdown

@wilbrdt wilbrdt left a comment

Choose a reason for hiding this comment

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

Nice work, really good model!
A few general remarks:

  • some files are missing an EOF newline
  • labels and annotations seem a bit inconsistent, which makes them harder to use

Comment thread jenny/templates/deployment.yaml Outdated
Comment thread jenny/templates/deployment.yaml
Comment thread jenny/templates/_helpers.tpl
Comment thread jenny/templates/_helpers.tpl
Comment thread jenny/templates/jobs.yaml
Comment thread jenny/templates/jobs.yaml Outdated
Comment thread jenny/values.yaml
Comment thread jenny/templates/_helpers.tpl
Comment thread jenny/values.yaml Outdated
Comment thread jenny/templates/configmap.yaml
wilbrdt added a commit to openfun/warren that referenced this pull request May 17, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
wilbrdt added a commit to openfun/warren that referenced this pull request May 17, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
wilbrdt added a commit to openfun/warren that referenced this pull request May 17, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
wilbrdt added a commit to openfun/warren that referenced this pull request May 21, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
Comment thread jenny/templates/deployment.yaml
Comment thread jenny/templates/deployment.yaml
Comment thread jenny/templates/ingress.yaml Outdated
Comment thread jenny/templates/ingress.yaml
claudusd added 10 commits May 22, 2024 11:21
Ingore the tgz build with the command helm package.
This annotations need to be add to use the
cert-manager for certificate request.
The host is not mandatory in the ingress definition
but for an HTTP app it's a best pratice to use an
host instead of an IP. And the host is mandatory for
HTTPS.
Add the possibility to enable the HTTPS
and to set the certificate name.
The Jenny image is build to ensure the user
cannot write in the app dir. Allow to change the
running user is not required.
Django required to collect the static and
service with a HTTP server. We add an Nginx
container in the pods and add an init container
to collect this statics. And use an ephemeral
volume for static instead of a persistent one.
Fix when create a list of job in the same template and
ensure to run the job after the install to avoid missing
resource.
This allow from the values to add environment
variable from secret to configure Jenny's app.
Ensure to ingore previous helm package
in the next helm package.
For the Django app we use the hearbeat add by the
lib dockerflow for the liveness and readiness probes
Use Nginx status page for liveness probe.
And check migration for the startup probe.
wilbrdt added a commit to openfun/warren that referenced this pull request May 29, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
Comment thread jenny/templates/configmap.yaml Outdated
wilbrdt added a commit to openfun/warren that referenced this pull request Jun 7, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
wilbrdt added a commit to openfun/warren that referenced this pull request Jul 4, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
wilbrdt added a commit to openfun/warren that referenced this pull request Aug 22, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
It's a best pratice to defined request resources and
limit resources. To ensure to have enought resource when
pod start and to limit memory and cpu usage.
wilbrdt added a commit to openfun/warren that referenced this pull request Sep 26, 2024
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
Improve the metadata, selectors and add validation.
Copy link
Copy Markdown

@wilbrdt wilbrdt left a comment

Choose a reason for hiding this comment

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

🚢

wilbrdt added a commit to openfun/warren that referenced this pull request Jul 18, 2025
Rework Warren Helm chart based on the work done on Jenny Helm chart in PR
openfun/charts#5
Changes done in this commit:
- Jobs for database migration or static collection are abstracted into a single
  job template
- Env variables are now processed in the helper template
- Removed unused HorizontalPodAutoscaler
- Add startup probes for migration checks
- Migration jobs are now executed post helm installation/upgrade
- Removed unnecessary security context variables
- Add a nginx container alongside warren-app to serve static files
- Rework postgresql values to have a functional Helm chart on a local cluster
- Update Helm chart README.md
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