add hpa and revisionhistorylimit
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s

This commit is contained in:
jona.klaess
2026-06-15 00:14:30 +02:00
parent d8f2f10c73
commit 66648e7e6f
4 changed files with 29 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ metadata:
app: mediawiki-db app: mediawiki-db
spec: spec:
replicas: 1 replicas: 1
revisionHistoryLimit: 2
selector: selector:
matchLabels: matchLabels:
app: mediawiki-db app: mediawiki-db

26
mediawiki/hpa.yaml Normal file
View File

@@ -0,0 +1,26 @@
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: mediawiki-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mediawiki-app
desiredReplicas: 0
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70

View File

@@ -9,3 +9,4 @@ resources:
- mediawiki.yaml - mediawiki.yaml
- localsettings-sealed-secret.yaml - localsettings-sealed-secret.yaml
- initsql-sealed-secret.yaml - initsql-sealed-secret.yaml
- hpa.yaml

View File

@@ -7,6 +7,7 @@ metadata:
labels: labels:
app: mediawiki-app app: mediawiki-app
spec: spec:
revisionHistoryLimit: 2
selector: selector:
matchLabels: matchLabels:
app: mediawiki-app app: mediawiki-app