1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-20 22:18:18 +00:00

No longer using memcached. Replication settings for standalong mariadb. Use --single-transaction in mariadb replica-watcher so mysqldump does not lock tables. Added horizontal pod autoscaler to the app statefulset

This commit is contained in:
2025-10-30 08:50:31 -04:00
parent 6e9554be55
commit 92bd06fe3c
4 changed files with 33 additions and 65 deletions

View File

@@ -122,25 +122,27 @@ spec:
initialDelaySeconds: 180
periodSeconds: 20
timeoutSeconds: 10
# ---
# apiVersion: autoscaling/v2beta1
# kind: HorizontalPodAutoscaler
# metadata:
# name: wrestlingdev-app-deployment-autoscale
# spec:
# scaleTargetRef:
# apiVersion: apps/v1
# kind: Deployment
# name: wrestlingdev-app-deployment
# minReplicas: 2
# maxReplicas: 5
# metrics:
# - type: Resource
# resource:
# name: cpu
# targetAverageUtilization: 75
# - type: Resource
# resource:
# name: memory
# targetAverageValue: 100Mi
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: wrestlingdev-app-autoscale
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: StatefulSet
name: wrestlingdev-app
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 75
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80