-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36db1bc
commit c060e79
Showing
7 changed files
with
229 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
kind: Job | ||
apiVersion: batch/v1 | ||
metadata: | ||
name: {{ include "mautic.fullname" . }}-install | ||
spec: | ||
template: | ||
metadata: | ||
{{- with .Values.podAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
{{- include "mautic.labels" . | nindent 8 }} | ||
{{- with .Values.podLabels }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: {{ include "mautic.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.podSecurityContext | nindent 8 }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 12 }} | ||
image: "{{ .Values.mautic.image.repository }}:install-{{ .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.mautic.image.pullPolicy }} | ||
envFrom: | ||
# DB ConfigMap | ||
{{- if .Values.mautic.db.existingConfigMap }} | ||
- configMapRef: | ||
name: {{ .Values.mautic.db.existingConfigMap }} | ||
{{- else }} | ||
- configMapRef: | ||
name: {{ include "mautic.fullname" . }}-db | ||
{{- end }} | ||
# DB Secret | ||
{{- if .Values.mautic.db.existingSecret }} | ||
- secretRef: | ||
name: {{ .Value.mautic.db.existingSecret }} | ||
{{- else }} | ||
- secretRef: | ||
name: {{ include "mautic.fullname" . }}-db | ||
{{- end }} | ||
# Maustic ConfigMap | ||
{{- if .Values.mautic.existingConfigMap }} | ||
- configMapRef: | ||
name: {{ .Values.mautic.existingConfigMap }} | ||
{{- else }} | ||
- configMapRef: | ||
name: {{ include "mautic.fullname" . }}-config | ||
{{- end }} | ||
# Mautic Secret | ||
{{- if .Values.mautic.existingSecret }} | ||
- secretRef: | ||
name: {{ .Values.mautic.existingSecret }} | ||
{{- else }} | ||
- secretRef: | ||
name: {{ include "mautic.fullname" . }}-secret | ||
{{- end }} | ||
resources: | ||
{{- toYaml .Values.mautic.install.resources | nindent 12 }} | ||
{{- with .Values.volumeMounts }} | ||
volumeMounts: | ||
{{- toYaml . | nindent 12 }} | ||
- mountPath: /var/www/html/var/logs | ||
name: logs | ||
- mountPath: /var/www/html/docroot/media/files | ||
name: files | ||
- mountPath: /var/www/html/docroot/media/images | ||
name: images | ||
- mountPath: /var/www/html/config | ||
name: config | ||
- mountPath: /var/www/html/docroot/var/tmp | ||
name: tmp | ||
{{- end }} | ||
{{- with .Values.volumes }} | ||
volumes: | ||
{{- toYaml . | nindent 8 }} | ||
- name: logs | ||
persistentVolumeClaim: | ||
claimName: {{ include "mautic.fullname" . }}-logs | ||
- name: files | ||
persistentVolumeClaim: | ||
claimName: {{ include "mautic.fullname" . }}-files | ||
- name: images | ||
persistentVolumeClaim: | ||
claimName: {{ include "mautic.fullname" . }}-images | ||
- name: config | ||
persistentVolumeClaim: | ||
claimName: {{ include "mautic.fullname" . }}-config | ||
- name: tmp | ||
persistentVolumeClaim: | ||
claimName: {{ include "mautic.fullname" . }}-tmp | ||
{{- end }} | ||
restartPolicy: OnFailure | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} |
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,59 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ include "mautic.fullname" . }}-logs | ||
spec: | ||
accessModes: | ||
- {{ .Values.mautic.persistence.accessMode | quote }} | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: {{ .Values.mautic.persistence.storageClass | quote }} | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ include "mautic.fullname" . }}-files | ||
spec: | ||
accessModes: | ||
- {{ .Values.mautic.persistence.accessMode | quote }} | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: {{ .Values.mautic.persistence.storageClass | quote }} | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ include "mautic.fullname" . }}-images | ||
spec: | ||
accessModes: | ||
- {{ .Values.mautic.persistence.accessMode | quote }} | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: {{ .Values.mautic.persistence.storageClass | quote }} | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ include "mautic.fullname" . }}-config | ||
spec: | ||
accessModes: | ||
- {{ .Values.mautic.persistence.accessMode | quote }} | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: {{ .Values.mautic.persistence.storageClass | quote }} | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ include "mautic.fullname" . }}-tmp | ||
spec: | ||
accessModes: | ||
- {{ .Values.mautic.persistence.accessMode | quote }} | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: {{ .Values.mautic.persistence.storageClass | quote }} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Default values for mautic. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
replicaCount: 1 | ||
|
||
mautic: | ||
image: | ||
repository: tanjim/mautic | ||
pullPolicy: IfNotPresent | ||
|
||
# existingConfigMap: "" | ||
# ignore the following values if existingConfigMap is set | ||
configMap: | ||
|
@@ -18,11 +18,29 @@ mautic: | |
MAUTIC_ADMIN_EMAIL: "[email protected]" | ||
MAUTIC_ADMIN_PASSWORD: "admin" | ||
|
||
web: | ||
image: | ||
repository: tanjim/mautic | ||
pullPolicy: IfNotPresent | ||
persistence: | ||
# options: ReadWriteOnce, ReadWriteMany | ||
# replicaCount should be 1 when using ReadWriteOnce | ||
accessMode: ReadWriteMany | ||
# example: efs, nfs, ebs | ||
storageClass: "" | ||
|
||
web: | ||
resources: {} | ||
# limits: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
install: | ||
resources: {} | ||
# limits: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
db: | ||
# existingConfigMap: "" | ||
# ignore the following values if existingConfigMap is set | ||
|
@@ -86,18 +104,6 @@ ingress: | |
# hosts: | ||
# - chart-example.local | ||
|
||
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 | ||
# resources, such as Minikube. If you do want to specify resources, uncomment the following | ||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'. | ||
# limits: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
|
||
livenessProbe: | ||
httpGet: | ||
path: / | ||
|