Set more realistic requests (#32)

Reviewed-on: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/pulls/32
This commit is contained in:
Nikolai Rodionov 2023-03-05 17:50:13 +00:00
parent b03661222a
commit bbefd9ce54
4 changed files with 45 additions and 35 deletions

View File

@ -1,3 +1,4 @@
---
replicaCount: 1 replicaCount: 1
worker: worker:
replicaCount: 1 replicaCount: 1
@ -21,4 +22,8 @@ s3:
enabled: false enabled: false
ingress: ingress:
enabled: false enabled: false
postgresql:
primary:
resources:
requests:
cpu: 50m

View File

@ -1,3 +1,4 @@
---
ns: ns:
enabled: true enabled: true
name: gitea-service name: gitea-service
@ -39,7 +40,7 @@ resources:
cpu: 300m cpu: 300m
memory: 512Mi memory: 512Mi
requests: requests:
cpu: 100m cpu: 50m
memory: 128Mi memory: 128Mi
persistence: persistence:
@ -54,7 +55,9 @@ memcached:
enabled: true enabled: true
service: service:
port: 11211 port: 11211
resources:
requests:
cpu: 10mi
postgresql: postgresql:
auth: auth:
postgresPassword: check postgresPassword: check
@ -64,6 +67,9 @@ postgresql:
servicePort: 5432 servicePort: 5432
persistence: persistence:
size: 10Gi size: 10Gi
resources:
requests:
cpu: 50m
ingress: ingress:
enabled: false enabled: false

View File

@ -28,13 +28,13 @@ templates:
# ---------------------------- # ----------------------------
default-common-values: default-common-values:
values: values:
- "{{ requiredEnv \"PWD\" }}/commmon/values.{{ .Release.Name }}.yaml" - '{{ requiredEnv "PWD" }}/commmon/values.{{ .Release.Name }}.yaml'
default-env-values: default-env-values:
values: values:
- "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml" - '{{ requiredEnv "PWD" }}/{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml'
default-env-secrets: default-env-secrets:
secrets: secrets:
- "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/secrets.{{ .Release.Name }}.yaml" - '{{ requiredEnv "PWD" }}/{{ .Environment.Name }}/values/secrets.{{ .Release.Name }}.yaml'
# ---------------------------- # ----------------------------
# -- Extensions # -- Extensions
# ---------------------------- # ----------------------------
@ -49,7 +49,7 @@ templates:
version: 2.0.0 version: 2.0.0
alias: ns alias: ns
values: values:
- "{{ requiredEnv \"PWD\" }}/common/values.ns.yaml" - '{{ requiredEnv "PWD" }}/common/values.ns.yaml'
# ---------------------------- # ----------------------------
# -- Releases # -- Releases
# ---------------------------- # ----------------------------
@ -176,4 +176,3 @@ templates:
inherit: inherit:
- template: default-env-values - template: default-env-values
- template: default-env-secrets - template: default-env-secrets