add hpa and revisionhistorylimit
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
This commit is contained in:
@@ -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
26
mediawiki/hpa.yaml
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user