mirror of
https://forge.liiib.re/indiehost/libre.sh/libre.sh.git
synced 2024-12-28 22:56:41 +00:00
feat(resources): improve requests and limits
This commit is contained in:
parent
c8b906ed5e
commit
5891846a04
6 changed files with 52 additions and 8 deletions
|
@ -1,10 +1,16 @@
|
||||||
admissionController:
|
admissionController:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 256Mi
|
||||||
backgroundController:
|
backgroundController:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 512Mi
|
memory: 128Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
|
|
|
@ -55,9 +55,9 @@ controller:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 1
|
cpu: 1
|
||||||
memory: 1Gi
|
memory: 2Gi
|
||||||
limits:
|
limits:
|
||||||
memory: 1Gi
|
memory: 2Gi
|
||||||
defaultBackend:
|
defaultBackend:
|
||||||
enabled: true
|
enabled: true
|
||||||
image:
|
image:
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
replicas: 2
|
replicas: 2
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 512Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 512Mi
|
||||||
priorityClassName: lsh-system-critical
|
priorityClassName: lsh-system-critical
|
||||||
env:
|
env:
|
||||||
# GF_EXPLORE_ENABLED: true
|
# GF_EXPLORE_ENABLED: true
|
||||||
|
|
|
@ -12,6 +12,12 @@ monitoring:
|
||||||
write:
|
write:
|
||||||
persistence:
|
persistence:
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 1.5Gi
|
||||||
|
requests:
|
||||||
|
cpu: 80m
|
||||||
|
memory: 1.5Gi
|
||||||
read:
|
read:
|
||||||
legacyReadTarget: false
|
legacyReadTarget: false
|
||||||
persistence:
|
persistence:
|
||||||
|
@ -22,6 +28,12 @@ read:
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
- name: rules
|
- name: rules
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 512Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 512Mi
|
||||||
backend:
|
backend:
|
||||||
persistence:
|
persistence:
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
|
@ -36,6 +48,12 @@ backend:
|
||||||
name: loki-alerting-rules
|
name: loki-alerting-rules
|
||||||
- name: scratch
|
- name: scratch
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 200Mi
|
||||||
|
requests:
|
||||||
|
cpu: 40m
|
||||||
|
memory: 200Mi
|
||||||
gateway:
|
gateway:
|
||||||
enabled: true
|
enabled: true
|
||||||
autoscaling:
|
autoscaling:
|
||||||
|
@ -54,6 +72,12 @@ gateway:
|
||||||
- secretName: loki-${CLUSTER_DOMAIN/./-}-tls
|
- secretName: loki-${CLUSTER_DOMAIN/./-}-tls
|
||||||
hosts:
|
hosts:
|
||||||
- loki.${CLUSTER_DOMAIN}
|
- loki.${CLUSTER_DOMAIN}
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 200Mi
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 200Mi
|
||||||
loki:
|
loki:
|
||||||
structuredConfig:
|
structuredConfig:
|
||||||
auth_enabled: true
|
auth_enabled: true
|
||||||
|
|
|
@ -57,11 +57,13 @@ prometheus:
|
||||||
# - hosts:
|
# - hosts:
|
||||||
# - "thanos-sidecar.${CLUSTER_DOMAIN}"
|
# - "thanos-sidecar.${CLUSTER_DOMAIN}"
|
||||||
# secretName: "thanos-sidecar-${CLUSTER_DOMAIN/./-}-tls"
|
# secretName: "thanos-sidecar-${CLUSTER_DOMAIN/./-}-tls"
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 1000m
|
|
||||||
memory: 1000Mi
|
|
||||||
prometheusSpec:
|
prometheusSpec:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 1000m
|
||||||
|
memory: 4000Mi
|
||||||
|
limits:
|
||||||
|
memory: 4000Mi
|
||||||
## Name of the external label used to denote replica name
|
## Name of the external label used to denote replica name
|
||||||
replicaExternalLabelName: __replica__ # must match with thanos value `.query.replicaLabel[0]`
|
replicaExternalLabelName: __replica__ # must match with thanos value `.query.replicaLabel[0]`
|
||||||
podMonitorSelectorNilUsesHelmValues: false
|
podMonitorSelectorNilUsesHelmValues: false
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
config:
|
config:
|
||||||
clients:
|
clients:
|
||||||
- tenant_id: 1
|
- tenant_id: 1
|
||||||
url: http://loki-gateway/loki/api/v1/push
|
url: http://loki-gateway/loki/api/v1/push
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
Loading…
Reference in a new issue