Skip to content

Commit

Permalink
Making it so the nginx sidecar is always deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 committed Sep 14, 2023
1 parent cfffb60 commit de10727
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
3 changes: 1 addition & 2 deletions helm/indexd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ A Helm chart for gen3 indexd
| serviceAccount.annotations | map | `{}` | Annotations to add to the service account. |
| serviceAccount.create | bool | `false` | Specifies whether a service account should be created. |
| serviceAccount.name | string | `""` | The name of the service account |
| sidecar | map | `{"enabled":true,"image":"quay.io/cdis/nginx","pullPolicy":"Always","tag":"master"}` | Configuration for Nginx sidecar container to be deployed with gunicorn. |
| sidecar.enabled | bool | `true` | Whether to enable the nginx sidecar image. |
| sidecar | map | `{"image":"quay.io/cdis/nginx","pullPolicy":"Always","tag":"master"}` | Configuration for Nginx sidecar container to be deployed with gunicorn. |
| sidecar.image | string | `"quay.io/cdis/nginx"` | The Docker image repository for nginx |
| sidecar.pullPolicy | string | `"Always"` | When to pull the image. |
| sidecar.tag | string | `"master"` | Image tag. |
Expand Down
11 changes: 0 additions & 11 deletions helm/indexd/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,4 @@ Create the name of the service account to use
*/}}
{{- define "indexd-gateway-creds" -}}
{{- default (randAlphaNum 32) .Values.secrets.userdb.gateway }}
{{- end }}

{{/*
Port for Gunicorn to bind to depending on if nginx sidecar is deployed.
*/}}
{{- define "indexd.gunicornPort" -}}
{{- if .Values.sidecar.enabled}}
{{- default 8000 }}
{{- else }}
{{- default 80}}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion helm/indexd/templates/wsgi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
data:
gunicorn.conf.py: |
wsgi_app = "deployment.wsgi.wsgi:application"
bind = "0.0.0.0:{{ include "indexd.gunicornPort" . }}"
bind = "0.0.0.0:8000"
workers = 1
user = 'appuser'
group = 'appuser'
2 changes: 0 additions & 2 deletions helm/indexd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ image:

# -- (map) Configuration for Nginx sidecar container to be deployed with gunicorn.
sidecar:
# -- (bool) Whether to enable the nginx sidecar image.
enabled: true
# -- (string) The Docker image repository for nginx
image: quay.io/cdis/nginx
# -- (string) When to pull the image.
Expand Down

0 comments on commit de10727

Please sign in to comment.