add ptp-chat configuration
All checks were successful
Mirror to GitHub / mirror (push) Successful in 7s

This commit is contained in:
jona.klaess
2026-06-06 15:21:00 +02:00
parent 67c0624079
commit 78cf3c8c8d
11 changed files with 392 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: ptp-chat-frontend-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: ptp-chat-frontend
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: ptp-chat-backend-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: ptp-chat-backend
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: ptp-chat-db-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: ptp-chat-db
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70