PERF(applications): optimize resources via VPA
- code-server: CPU 15m/15m, memory 225Mi/225Mi - docusaurus: CPU 10m/16m, memory 50Mi/50Mi - headlamp: CPU 15m/15m, memory 100Mi/100Mi - homer: CPU 10m/12m, memory 50Mi/50Mi - mas: CPU 15m/15m, memory 144Mi/203Mi - umami: CPU 15m/15m, memory 271Mi/323Mi
This commit is contained in:
@@ -40,13 +40,14 @@ service:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|
||||||
# Resource limits
|
# Resource settings (VPA lowerBound/target)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 15m
|
||||||
memory: 215Mi
|
memory: 225Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 215Mi
|
cpu: 15m
|
||||||
|
memory: 225Mi
|
||||||
|
|
||||||
# Security context
|
# Security context
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -34,12 +34,14 @@ ingress:
|
|||||||
hosts:
|
hosts:
|
||||||
- docusaurus0213.kro.kr
|
- docusaurus0213.kro.kr
|
||||||
|
|
||||||
|
# Resource settings (VPA lowerBound/upperBound)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 100Mi
|
cpu: 10m
|
||||||
cpu: 15m
|
memory: 50Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 100Mi
|
cpu: 16m
|
||||||
|
memory: 50Mi
|
||||||
|
|
||||||
healthCheck:
|
healthCheck:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -19,11 +19,13 @@ service:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
|
# Resource settings (VPA lowerBound/target)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 15m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
limits:
|
limits:
|
||||||
|
cpu: 15m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
|
|||||||
@@ -34,11 +34,13 @@ controllers:
|
|||||||
repository: b4bz/homer
|
repository: b4bz/homer
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
# Resource settings (VPA lowerBound/upperBound)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 11m
|
cpu: 10m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
limits:
|
limits:
|
||||||
|
cpu: 12m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
pod:
|
pod:
|
||||||
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
||||||
|
|||||||
@@ -43,12 +43,14 @@ controllers:
|
|||||||
POSTGRES_PORT: "5432"
|
POSTGRES_PORT: "5432"
|
||||||
POSTGRES_USER: "bluemayne"
|
POSTGRES_USER: "bluemayne"
|
||||||
REDIS_URL: "redis://redis:6379/0"
|
REDIS_URL: "redis://redis:6379/0"
|
||||||
|
# Resource settings (VPA lowerBound/target)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 15m
|
||||||
memory: 175Mi
|
memory: 144Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 175Mi
|
cpu: 15m
|
||||||
|
memory: 203Mi
|
||||||
probes:
|
probes:
|
||||||
startup:
|
startup:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -50,12 +50,14 @@ service:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 3000
|
port: 3000
|
||||||
|
|
||||||
|
# Resource settings (VPA lowerBound/target)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 15m
|
||||||
memory: 283Mi
|
memory: 271Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 283Mi
|
cpu: 15m
|
||||||
|
memory: 323Mi
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user