Skip to content

Commit

Permalink
Strapi: adding s3 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Sep 1, 2021
1 parent 2612336 commit 76dd427
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/strapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.12
version: 0.1.13

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/strapi/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ metadata:
{{- include "strapi.labels" . | nindent 4 }}
annotations:
{{- include "strapi.ingressAnnotations" . | nindent 4 }}
nginx.ingress.kubernetes.io/proxy-body-size: "20m"
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
Expand Down
6 changes: 5 additions & 1 deletion charts/strapi/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ data:
{{ if .Values.secrets.databaseUrl }}
DATABASE_URL: {{ .Values.secrets.databaseUrl | b64enc | quote }}
{{ end }}

{{ if .Values.s3.enabled }}
AWS_ACCESS_KEY_ID: {{ .Values.s3.accesKeyId | b64enc | quote }}
AWS_ACCESS_SECRET: {{ .Values.s3.accessSecret | b64enc | quote }}
AWS_ENDPOINT: {{ .Values.s3.endpoint | b64enc | quote }}
{{ end }}
7 changes: 7 additions & 0 deletions charts/strapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ ingress:
cert-manager.io/acme-challenge-type: http01
cert-manager.io/cluster-issuer: letsencrypt-prod

# S3 storage options. Settings need to be set, as containers are volatile
s3:
enabled: true
accesKeyId: ""
accessSecret: ""
endpoint: "s3.us-east-2.amazonaws.com"

resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit 76dd427

Please sign in to comment.