diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..783cd5b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.swp + diff --git a/Chart.yaml b/Chart.yaml index 6975ece..a2fe278 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.0" description: A Helm chart for Kubernetes name: mautic -version: 0.1.0 +version: 0.1.2 diff --git a/charts/mysql-1.3.1.tgz b/charts/mysql-1.3.1.tgz deleted file mode 100644 index fa16b6e..0000000 Binary files a/charts/mysql-1.3.1.tgz and /dev/null differ diff --git a/charts/mysql-1.6.9.tgz b/charts/mysql-1.6.9.tgz new file mode 100644 index 0000000..d23e4bc Binary files /dev/null and b/charts/mysql-1.6.9.tgz differ diff --git a/requirements.lock b/requirements.lock index 37dd464..3269ac6 100644 --- a/requirements.lock +++ b/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mysql - repository: https://kubernetes-charts.storage.googleapis.com - version: 1.3.1 -digest: sha256:5aa0cdc2834abf1d7e3122a952b45bd1f644ef1a2dec88ac81bad371c8ade086 -generated: "2019-08-26T23:28:02.518635+05:00" + repository: https://helm.wso2.com + version: 1.6.9 +digest: sha256:f5313d398ce2797adad715cecad54e6ef07b4277e7a65ffcda68d4eee2f36ea6 +generated: 2021-02-05T15:09:10.166388742Z diff --git a/requirements.yaml b/requirements.yaml index 4d87af4..b4a2bf7 100644 --- a/requirements.yaml +++ b/requirements.yaml @@ -1,4 +1,4 @@ dependencies: - name: mysql - version: 1.3.1 - repository: https://kubernetes-charts.storage.googleapis.com \ No newline at end of file + version: 1.6.9 + repository: https://helm.wso2.com diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 12694bb..962f4dc 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -16,6 +16,10 @@ spec: app.kubernetes.io/name: {{ include "mautic.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: + volumes: + - name: var-www-html + persistentVolumeClaim: + claimName: {{ include "mautic.name" .}}-var-www-html {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} @@ -35,6 +39,9 @@ spec: - name: http containerPort: 80 protocol: TCP + volumeMounts: + - name: var-www-html + mountPath: /var/www/html # livenessProbe: # httpGet: # path: / diff --git a/templates/pvc.yaml b/templates/pvc.yaml new file mode 100644 index 0000000..055d4b8 --- /dev/null +++ b/templates/pvc.yaml @@ -0,0 +1,17 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: {{ include "mautic.name" .}}-var-www-html + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: {{ include "mautic.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: {{ .Values.volume.size | quote }} + storageClassName: {{ .Values.volume.storageClass | quote }} + + diff --git a/values.yaml b/values.yaml index 190de12..aa2878c 100644 --- a/values.yaml +++ b/values.yaml @@ -11,6 +11,10 @@ image: imagePullSecrets: [] +volume: + size: "1Gi" + storageClass: "" + service: type: ClusterIP port: 80