feat: add PostgreSQL tunnel deployment with ConfigMap, HPA, and service

This commit is contained in:
2026-04-30 08:08:39 +02:00
parent 6c02a31d48
commit e093e945eb
10 changed files with 191 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: postgres-tunnel
namespace: postgres-tunnel
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: postgres-tunnel
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
behavior:
scaleDown:
stabilizationWindowSeconds: 300