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 | | Parametro | Description | Default |
|---------------------------|--------------------------------------------|--------------------------| |---------------------------|--------------------------------------------|--------------------------|
| image.repository | Repository of docker image | `interlegis/osticket` | | 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` | | image.pullPolicy | Docker image Pull Policy | `IfNotPresent` |
| replicaCount | Number of OSTicket replicas | `1` | | replicaCount | Number of OSTicket replicas | `1` |
| persistence.enabled | Enable persistent volumes | `true` | | persistence.enabled | Enable persistent volumes | `true` |
@ -19,6 +19,6 @@ Requirements:
| persistence.accessMode | Persistent volume acces mode | `ReadWriteOnce` | | persistence.accessMode | Persistent volume acces mode | `ReadWriteOnce` |
| persistence.size | Persistent volume size | `10Gi ` | | persistence.size | Persistent volume size | `10Gi ` |
| installSecret | OSTicket install secret | `` | | installSecret | OSTicket install secret | `` |
| mysql.mysqlDatabase | OSTicket database name | `osticket` | | mariadb.auth.database | OSTicket database name | `osticket` |
| mysql.mysqlUser | OSTicket database user name | `osticket` | | mariadb.auth.username | OSTicket database user name | `osticket` |
| mysql.mysqlPassword | OSTicket database user password | `mysecretpw` | | 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 - name: INSTALL_SECRET
value: "{{ .Values.installSecret }}" value: "{{ .Values.installSecret }}"
- name: MYSQL_HOST - name: MYSQL_HOST
value: "{{ include "osticket.name" . }}-mysql" value: "{{ include "osticket.name" . }}-mariadb"
- name: MYSQL_PASSWORD - name: MYSQL_PASSWORD
value: "{{ .Values.mysql.mysqlPassword }}" value: "{{ .Values.mariadb.auth.password }}"
- name: USE_MEMCACHE - name: USE_MEMCACHE
value: "true" value: "true"
- name: MEMCACHE_NAME - name: MEMCACHE_NAME
@ -50,9 +50,9 @@ spec:
- name: INSTALL_SECRET - name: INSTALL_SECRET
value: "{{ .Values.installSecret }}" value: "{{ .Values.installSecret }}"
- name: MYSQL_HOST - name: MYSQL_HOST
value: "{{ include "osticket.name" . }}-mysql" value: "{{ include "osticket.name" . }}-mariadb"
- name: MYSQL_PASSWORD - name: MYSQL_PASSWORD
value: "{{ .Values.mysql.mysqlPassword }}" value: "{{ .Values.mariadb.auth.password }}"
- name: USE_MEMCACHE - name: USE_MEMCACHE
value: "true" value: "true"
- name: MEMCACHE_NAME - name: MEMCACHE_NAME

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

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

Loading…
Cancel
Save