mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
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
- 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
48 lines
950 B
YAML
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
|
|
|