turash/k8s/frontend-hpa.yaml
Damir Mukimov c60fd6a91f
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 1m18s
CI/CD Pipeline / frontend-lint (push) Failing after 1m22s
CI/CD Pipeline / e2e-test (push) Has been skipped
CI/CD Pipeline / frontend-build (push) Has been skipped
CI/CD Pipeline / backend-build (push) Has been skipped
Configure k8s manifests for Argo CD deployment
- Add namespace.yaml for turash namespace
- Add frontend manifests (deployment, service, HPA, ingress)
- Add kustomization.yaml for Argo CD kustomize support
- Update frontend Argo CD application with proper annotations
- Configure ingress with domain turash.bk.glpx.pro for Argo CD link display
- Use registry.bk.glpx.pro for container images
2025-12-24 22:52:02 +01:00

48 lines
950 B
YAML

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: turash-frontend-hpa
namespace: turash
labels:
app: turash-frontend
component: autoscaling
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: turash-frontend
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
behavior:
scaleUp:
stabilizationWindowSeconds: 0
policies:
- type: Percent
value: 100
periodSeconds: 60
- type: Pods
value: 2
periodSeconds: 60
selectPolicy: Max
scaleDown:
stabilizationWindowSeconds: 300
policies:
- type: Percent
value: 50
periodSeconds: 60
selectPolicy: Max