Skip to content

Commit

Permalink
Add nginx sidecar file browser
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Oct 3, 2020
1 parent 4a19c77 commit b6db34b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/mottainai/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,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.
version: 0.0.5
version: 0.0.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
18 changes: 18 additions & 0 deletions charts/mottainai/templates/mottainai-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ spec:
name: mottainai-namespaces
- mountPath: /srv/mottainai/web/storage
name: mottainai-storages
{{- if .Values.fileIndex.enabled }}
- name: nginx
image: {{ .Values.image.fileIndex }}
imagePullPolicy: Always
ports:
- containerPort: 80
volumeMounts:
- mountPath: "/opt/www/files/"
name: mottainai-namespaces
- name: nginx-config
mountPath: "/etc/nginx/conf.d"
readOnly: true
{{- end }}
restartPolicy: Always
volumes:
{{- if not .Values.arangodb.enabled }}
Expand All @@ -88,6 +101,11 @@ spec:
- name: mottainai-storages
persistentVolumeClaim:
claimName: mottainai-storages
{{- if .Values.fileIndex.enabled }}
- name: nginx-config
configMap:
name: nginx-config
{{- end }}
selector:
matchLabels:
io.kompose.service: mottainai
11 changes: 11 additions & 0 deletions charts/mottainai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,23 @@ image:
repository: mottainaici/server
pullPolicy: IfNotPresent
tag: latest
fileIndex: "quay.io/mocaccino/nginx-file-browser:latest"

fsGroup: 988
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

fileIndex:
enabled: true
ingress:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
enabled: false
hosts:
- host: chart-example.local
paths: []
tls: []
arangodb:
enabled: false

Expand Down

0 comments on commit b6db34b

Please sign in to comment.