fix: update cAdvisor housekeeping interval and optimize resource requests and limits for Gitea components
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
98188defd6
commit
3f2c07c0e1
@ -62,8 +62,7 @@ spec:
|
|||||||
automountServiceAccountToken: false
|
automountServiceAccountToken: false
|
||||||
containers:
|
containers:
|
||||||
- args:
|
- args:
|
||||||
- --housekeeping_interval=10s
|
- --housekeeping_interval=30s
|
||||||
- --max_housekeeping_interval=15s
|
|
||||||
- --event_storage_event_limit=default=0
|
- --event_storage_event_limit=default=0
|
||||||
- --event_storage_age_limit=default=0
|
- --event_storage_age_limit=default=0
|
||||||
- --enable_metrics=app,cpu,disk,diskIO,memory,network,process
|
- --enable_metrics=app,cpu,disk,diskIO,memory,network,process
|
||||||
@ -78,11 +77,11 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 800m
|
|
||||||
memory: 2000Mi
|
|
||||||
requests:
|
|
||||||
cpu: 400m
|
cpu: 400m
|
||||||
memory: 400Mi
|
memory: 700Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /rootfs
|
- mountPath: /rootfs
|
||||||
name: rootfs
|
name: rootfs
|
||||||
@ -165,6 +164,7 @@ spec:
|
|||||||
- action: labeldrop
|
- action: labeldrop
|
||||||
regex: container_label_io_kubernetes_pod_namespace
|
regex: container_label_io_kubernetes_pod_namespace
|
||||||
port: cadvisor
|
port: cadvisor
|
||||||
|
interval: 30s
|
||||||
relabelings:
|
relabelings:
|
||||||
- sourceLabels:
|
- sourceLabels:
|
||||||
- __meta_kubernetes_pod_node_name
|
- __meta_kubernetes_pod_node_name
|
||||||
|
|||||||
@ -667,10 +667,24 @@ postgresql-ha:
|
|||||||
repmgrPassword: WGZ47gbUTLvo
|
repmgrPassword: WGZ47gbUTLvo
|
||||||
postgresPassword: X9H2*9M2ZWYmuZ
|
postgresPassword: X9H2*9M2ZWYmuZ
|
||||||
password: bhYmZ3ivfD@udWc@8jrB4@
|
password: bhYmZ3ivfD@udWc@8jrB4@
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 512Mi
|
||||||
pgpool:
|
pgpool:
|
||||||
pdb:
|
pdb:
|
||||||
create: false
|
create: false
|
||||||
adminPassword: Rk(*4vc%wFVu5>C|
|
adminPassword: Rk(*4vc%wFVu5>C|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 256Mi
|
||||||
service:
|
service:
|
||||||
ports:
|
ports:
|
||||||
postgresql: 5432
|
postgresql: 5432
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user