PERF(argocd): optimize resources and pin controller to master
- Move application-controller to control-plane node - Adjust CPU request to VPA recommendation (476m) - Reduce memory request/limit (1700Mi → 1324Mi) - Update GOMEMLIMIT to 800MiB - Reduce repo-server memory (1536Mi → 1200Mi)
This commit is contained in:
@@ -53,7 +53,7 @@ controller:
|
||||
# Memory optimization environment variables
|
||||
env:
|
||||
- name: GOMEMLIMIT
|
||||
value: "400MiB"
|
||||
value: "800MiB"
|
||||
- name: GOGC
|
||||
value: "50"
|
||||
|
||||
@@ -64,10 +64,19 @@ controller:
|
||||
# Resource settings
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 1700Mi
|
||||
cpu: 476m
|
||||
memory: 1324Mi
|
||||
limits:
|
||||
memory: 1700Mi
|
||||
memory: 1324Mi
|
||||
|
||||
# Schedule on master node
|
||||
nodeSelector:
|
||||
node-role.kubernetes.io/control-plane: "true"
|
||||
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: Exists
|
||||
effect: NoSchedule
|
||||
|
||||
# =============================================================================
|
||||
# API SERVER (Deployment)
|
||||
@@ -116,9 +125,9 @@ repoServer:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 15m
|
||||
memory: 1536Mi
|
||||
memory: 1200Mi
|
||||
limits:
|
||||
memory: 1536Mi
|
||||
memory: 1200Mi
|
||||
|
||||
# =============================================================================
|
||||
# REDIS (Deployment)
|
||||
|
||||
Reference in New Issue
Block a user