Files
kubernetes-config/mediawiki/db.yaml
jona.klaess 66648e7e6f
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
add hpa and revisionhistorylimit
2026-06-15 00:14:30 +02:00

60 lines
1.2 KiB
YAML

---
# Source: portainer/templates/pvc.yaml
kind: "PersistentVolumeClaim"
apiVersion: "v1"
metadata:
name: mediawiki-pvc
namespace: ptp-chat
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 3Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mediawiki-db
namespace: ptp-chat
labels:
app: mediawiki-db
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: mediawiki-db
template:
metadata:
labels:
app: mediawiki-db
spec:
containers:
- name: mediawiki-db
image: mariadb:11.8
ports:
- name: http
containerPort: 3306
resources:
requests:
memory: 0.3Gi
cpu: 0.03
limits:
memory: 0.6Gi
cpu: 0.1
volumeMounts:
- name: mediawiki-pvc
mountPath: /var/lib/mysql
readOnly: false
- name: init-sql
mountPath: /docker-entrypoint-initdb.d/init.sql
subPath: init.sql
volumes:
- name: mediawiki-pvc
persistentVolumeClaim:
claimName: mediawiki-pvc
- name: init-sql
secret:
secretName: init