From 27fe86f04fe358ebef6a7fc189a6294ccadf4f71 Mon Sep 17 00:00:00 2001 From: Cullen Taylor Date: Thu, 26 Sep 2019 11:39:11 -0500 Subject: [PATCH] Add a values.yaml for disabling persistence Sometimes it is helpful to disable persistence when testing changes quickly, that way developers are not hampered by waiting on PVCs to bind or flooding a datastore with storage requests. This will disable persistence for the following components: * postgresql * redis * minio * gitaly Since this is cribbed from the minimal values for gke, which does not install prometheus, I have left its persistence flag out. Signed-off-by: Cullen Taylor --- examples/development/values-no-persist.yaml | 83 +++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 examples/development/values-no-persist.yaml diff --git a/examples/development/values-no-persist.yaml b/examples/development/values-no-persist.yaml new file mode 100644 index 0000000000..840fa81629 --- /dev/null +++ b/examples/development/values-no-persist.yaml @@ -0,0 +1,83 @@ +# This is an example values.yaml. It adjusts various default settings in order to fit GitLab +# into the standard GKE cluster defaults. (3 n1-standard-1 nodes). The is **not recommended** for a +# production deploy of GitLab. +# +# - all pods start with a single replica, rather than their other highly available defaults +# - resource requests are tuned down to the mimimal requirements for a single user to fully use GitLab +# - prometheus, gitlab ci runner, and the gitlab task-runner (used for backups and maintanance) are disabled +# - persistence is disabled for all enabled services which would normally require it. +prometheus: + install: false +gitlab-runner: + install: false +nginx-ingress: + controller: + replicaCount: 1 + minAvailable: 0 + resources: + requests: + cpu: 50m + memory: 100Mi + defaultBackend: + replicaCount: 1 + minAvailable: 0 + resources: + requests: + cpu: 5m + memory: 5Mi +redis: + persistence: + enabled: false + resources: + requests: + cpu: 10m + memory: 64Mi +minio: + persistence: + enabled: false + resources: + requests: + memory: 64Mi + cpu: 10m +# Reduce replica counts, reducing CPU & memory requirements +gitlab: + unicorn: + minReplicas: 1 + resources: + limits: + memory: 1.5G + requests: + cpu: 100m + memory: 900M + workhorse: + resources: + limits: + memory: 100M + requests: + cpu: 10m + memory: 10M + sidekiq: + minReplicas: 1 + resources: + limits: + memory: 1.5G + requests: + cpu: 50m + memory: 625M + gitlab-shell: + minReplicas: 1 + task-runner: + enabled: false + gitaly: + persistence: + enabled: false +registry: + minReplicas: 1 +certmanager: + resources: + requests: + cpu: 10m + memory: 32Mi +postgresql: + persistence: + enabled: false -- GitLab