minReplicas (2), 以下にはスケールダウンせず、最大 maxReplicas (10).apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: api-service-hpa
namespace: production
labels:
app.kubernetes.io/name: api-service
app.kubernetes.io/managed-by: toolsaa-k8s-hpa-generator
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: api-service
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 75
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
behavior:
scaleUp:
stabilizationWindowSeconds: 0
selectPolicy: Max
policies:
- type: Percent
value: 100
periodSeconds: 15
- type: Pods
value: 4
periodSeconds: 15
scaleDown:
stabilizationWindowSeconds: 300
selectPolicy: Min
policies:
- type: Percent
value: 10
periodSeconds: 60クライアントサイド安全処理
外部サーバーへの通信は一切行わず、ブラウザ内メモリで安全かつ高速にマニフェストを生成します。
完全ローカル・プライバシー保護
すべてのクラスター設定とメトリクス値は端末内に保持され、外部サーバーへ送信されることはありません。
本番環境対応の出力仕様
Kubernetes autoscaling/v2 仕様に完全準拠し、kubectl apply で即座にデプロイ可能な最適化 YAML を出力します。