Browse Source

Use mariadb instead of mysql

master
Fábio Kaiser Rauber 3 years ago
parent
commit
d37ca56514
  1. 8
      charts/osticket/v0.2.0/README.md
  2. 8
      charts/osticket/v0.2.0/templates/deployment.yaml
  3. 26
      charts/osticket/v0.2.0/values.yaml

8
charts/osticket/v0.2.0/README.md

@ -11,7 +11,7 @@ Requirements:
| Parametro | Description | Default |
|---------------------------|--------------------------------------------|--------------------------|
| image.repository | Repository of docker image | `interlegis/osticket` |
| image.tag | Docker image version | `1.12.2` |
| image.tag | Docker image version | `1.14.1` |
| image.pullPolicy | Docker image Pull Policy | `IfNotPresent` |
| replicaCount | Number of OSTicket replicas | `1` |
| persistence.enabled | Enable persistent volumes | `true` |
@ -19,6 +19,6 @@ Requirements:
| persistence.accessMode | Persistent volume acces mode | `ReadWriteOnce` |
| persistence.size | Persistent volume size | `10Gi ` |
| installSecret | OSTicket install secret | `` |
| mysql.mysqlDatabase | OSTicket database name | `osticket` |
| mysql.mysqlUser | OSTicket database user name | `osticket` |
| mysql.mysqlPassword | OSTicket database user password | `mysecretpw` |
| mariadb.auth.database | OSTicket database name | `osticket` |
| mariadb.auth.username | OSTicket database user name | `osticket` |
| mariadb.auth.password | OSTicket database user password | `mysecretpw` |

8
charts/osticket/v0.2.0/templates/deployment.yaml

@ -28,9 +28,9 @@ spec:
- name: INSTALL_SECRET
value: "{{ .Values.installSecret }}"
- name: MYSQL_HOST
value: "{{ include "osticket.name" . }}-mysql"
value: "{{ include "osticket.name" . }}-mariadb"
- name: MYSQL_PASSWORD
value: "{{ .Values.mysql.mysqlPassword }}"
value: "{{ .Values.mariadb.auth.password }}"
- name: USE_MEMCACHE
value: "true"
- name: MEMCACHE_NAME
@ -50,9 +50,9 @@ spec:
- name: INSTALL_SECRET
value: "{{ .Values.installSecret }}"
- name: MYSQL_HOST
value: "{{ include "osticket.name" . }}-mysql"
value: "{{ include "osticket.name" . }}-mariadb"
- name: MYSQL_PASSWORD
value: "{{ .Values.mysql.mysqlPassword }}"
value: "{{ .Values.mariadb.auth.password }}"
- name: USE_MEMCACHE
value: "true"
- name: MEMCACHE_NAME

26
charts/osticket/v0.2.0/values.yaml

@ -51,15 +51,21 @@ resources:
cpu: 100m
memory: 128Mi
mysql:
mariadb:
internal: true
image: mysql
imageTag: 5.7.14
mysqlDatabase: osticket
mysqlUser: osticket
mysqlPassword: mysecretpw
image:
tag: 10.5.13-debian-10-r58
architecture: standalone
auth:
database: osticket
username: osticket
password: mysecretpw
primary:
persistence:
enabled: true
accessModes:
- ReadWriteOnce
size: 20Gi
resources:
requests:
memory: 700Mi
@ -67,10 +73,12 @@ mysql:
memcached:
internal: true
image: memcached:1.5.12-alpine
image:
tag: 1.6.13-debian-10-r0
architecture: standalone
replicaCount: 1
pdbMinAvailable: 1
pdb:
minAvailable: 1
nodeSelector: {}

Loading…
Cancel
Save