-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Splits up the chart from one StatefulSet into 4 Deployments and one Job. - The nginx and railsserver Deployments are freely scalable, the scheduler and websocket must remain at replicas: 1 - The Job will be re-created on any chart update (via uuid in the name) and run the migrations. Deployments will fail until migrations are executed. This greatly reduces start-up and update downtime. - Refactor some code into helper templates to reduce redundancy / improve maintainability. - Storage requirements changed. Please read the updating instructions carefully before updating. Special thanks to @klml and @monotek for guidance and feedback.
- Loading branch information
Showing
19 changed files
with
574 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "zammad.fullname" . }}-nginx | ||
labels: | ||
{{- include "zammad.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: zammad-nginx | ||
spec: | ||
replicas: {{ .Values.zammadConfig.nginx.replicas }} | ||
selector: | ||
matchLabels: | ||
{{- include "zammad.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
{{- with .Values.podAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
{{- include "zammad.labels" . | nindent 8 }} | ||
app.kubernetes.io/component: zammad-nginx | ||
spec: | ||
{{- include "zammad.podSpec.deployment" . | nindent 6 }} | ||
containers: | ||
{{- with .Values.zammadConfig.nginx.sidecars }} | ||
{{- toYaml . | nindent 8}} | ||
{{- end }} | ||
- name: {{ .Chart.Name }}-nginx | ||
{{- include "zammad.containerSpec" (merge (dict "containerConfig" .Values.zammadConfig.nginx) .) | nindent 10 }} | ||
command: | ||
- /usr/sbin/nginx | ||
- -g | ||
- 'daemon off;' | ||
env: | ||
{{- include "zammad.env" . | nindent 12 }} | ||
{{- include "zammad.env.failOnPendingMigrations" . | nindent 12 }} | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
volumeMounts: | ||
{{- include "zammad.volumeMounts" . | nindent 12 }} | ||
- name: {{ include "zammad.fullname" . }}-nginx | ||
mountPath: /etc/nginx/nginx.conf | ||
subPath: nginx.conf | ||
readOnly: true | ||
- name: {{ include "zammad.fullname" . }}-nginx | ||
mountPath: /etc/nginx/sites-enabled/default | ||
subPath: default | ||
readOnly: true | ||
- name: {{ include "zammad.fullname" . }}-tmp | ||
mountPath: /var/log/nginx | ||
volumes: | ||
{{- include "zammad.volumes" . | nindent 8 }} | ||
- name: {{ template "zammad.fullname" . }}-init | ||
configMap: | ||
name: {{ template "zammad.fullname" . }}-init | ||
defaultMode: 0755 | ||
- name: {{ template "zammad.fullname" . }}-nginx | ||
configMap: | ||
name: {{ template "zammad.fullname" . }}-nginx |
Oops, something went wrong.