Skip to content

Commit 6944044

Browse files
author
zer0stars
committed
reducing resource requests
1 parent 984a29f commit 6944044

1 file changed

Lines changed: 24 additions & 22 deletions

File tree

charts/device-definitions-api/values.yaml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ securityContext:
1919
allowPrivilegeEscalation: false
2020
capabilities:
2121
drop:
22-
- all
22+
- all
2323
cronJob:
2424
enabled: false
2525
schedule: 0 0 * * 0
@@ -72,15 +72,15 @@ service:
7272
targetPort: grpc
7373
protocol: TCP
7474
ports:
75-
- name: mon-http
76-
containerPort: 8888
77-
protocol: TCP
78-
- name: http
79-
containerPort: 8080
80-
protocol: TCP
81-
- name: grpc
82-
containerPort: 8086
83-
protocol: TCP
75+
- name: mon-http
76+
containerPort: 8888
77+
protocol: TCP
78+
- name: http
79+
containerPort: 8080
80+
protocol: TCP
81+
- name: grpc
82+
containerPort: 8086
83+
protocol: TCP
8484
ingress:
8585
enabled: true
8686
className: nginx
@@ -92,18 +92,18 @@ ingress:
9292
nginx.ingress.kubernetes.io/limit-rps: '5'
9393
external-dns.alpha.kubernetes.io/hostname: device-definitions-api.dev.dimo.zone
9494
hosts:
95-
- host: device-definitions-api.dev.dimo.zone
96-
paths:
97-
- path: /
98-
pathType: ImplementationSpecific
95+
- host: device-definitions-api.dev.dimo.zone
96+
paths:
97+
- path: /
98+
pathType: ImplementationSpecific
9999
tls: []
100100
resources:
101101
limits:
102102
cpu: 250m
103-
memory: 768Mi
103+
memory: 384Mi
104104
requests:
105-
cpu: 10m
106-
memory: 64Mi
105+
cpu: 5m
106+
memory: 32Mi
107107
autoscaling:
108108
enabled: false
109109
minReplicas: 1
@@ -120,8 +120,10 @@ serviceMonitor:
120120
port: mon-http
121121
interval: 30s
122122
jobs:
123-
- name: search-index-load
124-
schedule: 0 0 * * *
125-
args:
126-
- '-c'
127-
- /device-definitions-api sync-device-definitions-search; CODE=$?; echo "weekly typesense mmy search index sync completed"; wget -q --post-data "hello=shutdown" http://localhost:4191/shutdown &> /dev/null; exit $CODE;
123+
- name: search-index-load
124+
schedule: 0 0 * * *
125+
args:
126+
- -c
127+
- /device-definitions-api sync-device-definitions-search; CODE=$?; echo "weekly
128+
typesense mmy search index sync completed"; wget -q --post-data "hello=shutdown"
129+
http://localhost:4191/shutdown &> /dev/null; exit $CODE;

0 commit comments

Comments
 (0)