Skip to content

Commit

Permalink
Updated osticket chart
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorauber committed Oct 22, 2024
1 parent e43e90d commit 2821f1f
Show file tree
Hide file tree
Showing 12 changed files with 109 additions and 46 deletions.
9 changes: 9 additions & 0 deletions charts/osticket/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: mariadb
repository: https://charts.bitnami.com/bitnami
version: 10.4.4
- name: memcached
repository: https://charts.bitnami.com/bitnami
version: 6.0.10
digest: sha256:82bd28a75702fa0313d8aedd8686527365365c914f2a5776e722da436e45135c
generated: "2022-04-01T11:42:33.634085-03:00"
18 changes: 14 additions & 4 deletions charts/osticket/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
apiVersion: v1
appVersion: "1.12.2"
apiVersion: v2
appVersion: "1.14.1"
description: OSTicket Open Source Ticket System
name: osticket
icon: https://osticket.com/wp-content/uploads/2017/03/osticket-supsys.png
version: 0.1.7
icon: https://osticket.com/wp-content/uploads/2021/03/osticket-supsys-new-1-e1616621912452.png
version: 0.2.0

dependencies:
- name: mariadb
version: 10.4.4
repository: https://charts.bitnami.com/bitnami
condition: mariadb.internal
- name: memcached
version: 6.0.10
repository: https://charts.bitnami.com/bitnami
condition: memcached.internal
8 changes: 4 additions & 4 deletions charts/osticket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ 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` |
| persistence.storageClass | Persistent volume storage class | `` |
| 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` |
Binary file added charts/osticket/charts/mariadb-10.4.4.tgz
Binary file not shown.
Binary file removed charts/osticket/charts/memcached-2.9.0.tgz
Binary file not shown.
Binary file added charts/osticket/charts/memcached-6.0.10.tgz
Binary file not shown.
Binary file removed charts/osticket/charts/mysql-1.3.1.tgz
Binary file not shown.
9 changes: 0 additions & 9 deletions charts/osticket/requirements.lock

This file was deleted.

9 changes: 0 additions & 9 deletions charts/osticket/requirements.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions charts/osticket/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
39 changes: 39 additions & 0 deletions charts/osticket/templates/velero-schedule-weekdays.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{{- if .Values.velero.backup.enabled }}
apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "osticket.fullname" . }}-weekdays
namespace: {{ .Values.velero.namespace }}
spec:
# generate a random backup time between 1 and 5 AM on weekdays
schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} * * 1-5
template:
includedNamespaces:
- {{ .Release.Namespace }}
{{- with .Values.velero.backup.excludedResources }}
excludedResources:
{{- toYaml . | nindent 8 }}
{{- end }}
snapshotVolumes: {{ .Values.velero.backup.snapshotVolumes }}
# every weekday backup is good for the next week (7 days)
ttl: 168h0m0s
defaultVolumesToRestic: {{ .Values.velero.backup.defaultVolumesToRestic }}
hooks:
resources:
- name: mysqldump
includedResources:
- pods
labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/name: mariadb
pre:
- exec:
command:
- "/bin/bash"
- "-c"
- "/opt/bitnami/mariadb/bin/mysqldump osticket -u osticket -p$MARIADB_PASSWORD > /bitnami/mariadb/osticket.dump"
timeout: 360s
onError: Continue
useOwnerReferencesInBackup: false
{{- end }}
55 changes: 39 additions & 16 deletions charts/osticket/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: interlegis/osticket
tag: 1.12.2
tag: 1.14.1
pullPolicy: IfNotPresent

imagePullSecrets: []
Expand All @@ -21,6 +21,19 @@ persistence:
accessMode: ReadWriteOnce
size: 10Gi

velero:
namespace: velero
backup:
enabled: true
snapshotVolumes: false
defaultVolumesToRestic: true
# cert-manager objects are usually blocked during backup
excludedResources:
- certificates.cert-manager.io
- orders.acme.cert-manager.io
- certificaterequests.cert-manager.io
- challenges.acme.cert-manager.io

service:
type: ClusterIP
port: 80
Expand Down Expand Up @@ -51,26 +64,36 @@ resources:
cpu: 100m
memory: 128Mi

mysql:
mariadb:
internal: true
image: mysql
imageTag: 5.7.14
mysqlDatabase: osticket
mysqlUser: osticket
mysqlPassword: mysecretpw
persistence:
enabled: true
resources:
requests:
memory: 700Mi
cpu: 100m
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
cpu: 100m
service:
type: ClusterIP

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: {}

Expand Down

0 comments on commit 2821f1f

Please sign in to comment.