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

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