aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/cassandra/templates/backup/cronjob.yaml14
-rw-r--r--kubernetes/common/cassandra/values.yaml8
-rw-r--r--kubernetes/common/common/templates/_log.tpl4
-rw-r--r--kubernetes/common/common/templates/_mariadb.tpl8
-rw-r--r--kubernetes/common/common/templates/_resources.tpl16
-rw-r--r--kubernetes/common/dgbuilder/templates/deployment.yaml7
-rw-r--r--kubernetes/common/dgbuilder/values.yaml16
-rw-r--r--kubernetes/common/elasticsearch/components/curator/values.yaml8
-rw-r--r--kubernetes/common/elasticsearch/components/data/values.yaml8
-rw-r--r--kubernetes/common/elasticsearch/components/master/values.yaml12
-rw-r--r--kubernetes/common/elasticsearch/values.yaml8
-rw-r--r--kubernetes/common/etcd-init/templates/job.yaml7
-rw-r--r--kubernetes/common/etcd-init/values.yaml16
-rw-r--r--kubernetes/common/mariadb-galera/values.yaml24
-rw-r--r--kubernetes/common/mariadb-init/templates/job.yaml7
-rw-r--r--kubernetes/common/mariadb-init/values.yaml16
-rw-r--r--kubernetes/common/mongo/values.yaml16
-rw-r--r--kubernetes/common/network-name-gen/templates/deployment.yaml7
-rw-r--r--kubernetes/common/postgres-init/values.yaml16
-rw-r--r--kubernetes/common/postgres/values.yaml24
-rw-r--r--kubernetes/common/readinessCheck/values.yaml8
-rw-r--r--kubernetes/common/timescaledb/values.yaml16
22 files changed, 154 insertions, 112 deletions
diff --git a/kubernetes/common/cassandra/templates/backup/cronjob.yaml b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
index 06bb7434c5..8773cd3e4b 100644
--- a/kubernetes/common/cassandra/templates/backup/cronjob.yaml
+++ b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
@@ -50,9 +50,23 @@ spec:
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
name: {{ include "common.name" . }}-readiness
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
- name: "cassandra-backup-init"
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
command:
- /bin/bash
- -c
diff --git a/kubernetes/common/cassandra/values.yaml b/kubernetes/common/cassandra/values.yaml
index b5c74ea3ef..2fc368f04f 100644
--- a/kubernetes/common/cassandra/values.yaml
+++ b/kubernetes/common/cassandra/values.yaml
@@ -210,11 +210,11 @@ configOverrides: {}
# Minimum memory for production is 4 CPU cores and 8GB memory
resources:
limits:
- cpu: 2
- memory: 8Gi
+ cpu: "2"
+ memory: "8Gi"
requests:
- cpu: 0.2
- memory: 2.5Gi
+ cpu: "0.2"
+ memory: "2.5Gi"
backup:
enabled: false
cron: "00 00 * * *"
diff --git a/kubernetes/common/common/templates/_log.tpl b/kubernetes/common/common/templates/_log.tpl
index 369c25b254..ca296c5b35 100644
--- a/kubernetes/common/common/templates/_log.tpl
+++ b/kubernetes/common/common/templates/_log.tpl
@@ -29,11 +29,11 @@
mountPath: /usr/share/filebeat/data
resources:
requests:
- memory: "5Mi"
cpu: "10m"
+ memory: "0.005Gi"
limits:
- memory: "20Mi"
cpu: "100m"
+ memory: "0.02Gi"
{{- end -}}
{{- end -}}
diff --git a/kubernetes/common/common/templates/_mariadb.tpl b/kubernetes/common/common/templates/_mariadb.tpl
index a0dd49d750..427e0cbad2 100644
--- a/kubernetes/common/common/templates/_mariadb.tpl
+++ b/kubernetes/common/common/templates/_mariadb.tpl
@@ -227,11 +227,11 @@ spec:
{{- end }}
resources:
requests:
- cpu: 100m
- memory: 128Mi
+ cpu: "100m"
+ memory: "0.1Gi"
limits:
- cpu: 300m
- memory: 512Mi
+ cpu: "300m"
+ memory: "0.5Gi"
{{- end -}}
{{/*
diff --git a/kubernetes/common/common/templates/_resources.tpl b/kubernetes/common/common/templates/_resources.tpl
index cd60b996ce..11177c76fb 100644
--- a/kubernetes/common/common/templates/_resources.tpl
+++ b/kubernetes/common/common/templates/_resources.tpl
@@ -39,18 +39,18 @@
e.g: resources:
small:
limits:
- cpu: 200m
- memory: 4Gi
+ cpu: "200m"
+ memory: "4Gi"
requests:
- cpu: 100m
- memory: 1Gi
+ cpu: "100m"
+ memory: "1Gi"
large:
limits:
- cpu: 400m
- memory: 8Gi
+ cpu: "400m"
+ memory: "8Gi"
requests:
- cpu: 200m
- memory: 2Gi
+ cpu: "200m"
+ memory: "2Gi"
unlimited: {}
*/ -}}
{{- define "common.resources" -}}
diff --git a/kubernetes/common/dgbuilder/templates/deployment.yaml b/kubernetes/common/dgbuilder/templates/deployment.yaml
index 84d6bc1d47..8182103225 100644
--- a/kubernetes/common/dgbuilder/templates/deployment.yaml
+++ b/kubernetes/common/dgbuilder/templates/deployment.yaml
@@ -72,6 +72,13 @@ spec:
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
name: {{ include "common.name" . }}-readiness
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
containers:
- name: {{ include "common.name" . }}
image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
diff --git a/kubernetes/common/dgbuilder/values.yaml b/kubernetes/common/dgbuilder/values.yaml
index b66bbde70a..c4dcb2f40e 100644
--- a/kubernetes/common/dgbuilder/values.yaml
+++ b/kubernetes/common/dgbuilder/values.yaml
@@ -152,18 +152,18 @@ flavor: small
resources:
small:
limits:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
requests:
- cpu: 1
- memory: 2Gi
+ cpu: "1"
+ memory: "2Gi"
large:
limits:
- cpu: 4
- memory: 8Gi
+ cpu: "4"
+ memory: "8Gi"
requests:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
unlimited: {}
#Pods Service Account
diff --git a/kubernetes/common/elasticsearch/components/curator/values.yaml b/kubernetes/common/elasticsearch/components/curator/values.yaml
index 62964ff973..0a5080e917 100644
--- a/kubernetes/common/elasticsearch/components/curator/values.yaml
+++ b/kubernetes/common/elasticsearch/components/curator/values.yaml
@@ -123,11 +123,11 @@ resources:
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits: {}
- # cpu: 100m
- # memory: 128Mi
+ # cpu: "100m"
+ # memory: "0.1Gi"
requests: {}
- # cpu: 100m
- # memory: 128Mi
+ # cpu: "100m"
+ # memory: "0.1Gi"
priorityClassName: ""
# extraVolumes and extraVolumeMounts allows you to mount other volumes
# Example Use Case: mount ssl certificates when elasticsearch has tls enabled
diff --git a/kubernetes/common/elasticsearch/components/data/values.yaml b/kubernetes/common/elasticsearch/components/data/values.yaml
index 1dc9ab8588..a0dad568d9 100644
--- a/kubernetes/common/elasticsearch/components/data/values.yaml
+++ b/kubernetes/common/elasticsearch/components/data/values.yaml
@@ -105,11 +105,11 @@ resources:
## choice for the user. This also increases chances charts run on environments with little
## resources, such as Minikube.
limits: {}
- # cpu: 100m
- # memory: 128Mi
+ # cpu: "100m"
+ # memory: "0.1Gi"
requests:
- cpu: 25m
- memory: 1152Mi
+ cpu: "25m"
+ memory: "1.1Gi"
## Elasticsearch data container's liveness and readiness probes
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
diff --git a/kubernetes/common/elasticsearch/components/master/values.yaml b/kubernetes/common/elasticsearch/components/master/values.yaml
index a2ec7b92db..f4ac74e2c3 100644
--- a/kubernetes/common/elasticsearch/components/master/values.yaml
+++ b/kubernetes/common/elasticsearch/components/master/values.yaml
@@ -108,13 +108,13 @@ resources:
## choice for the user. This also increases chances charts run on environments with little
## resources, such as Minikube.
limits:
- cpu: 250m
- memory: 1536Mi
- # cpu: 100m
- # memory: 128Mi
+ cpu: "250m"
+ memory: "1.5Gi"
+ # cpu: "100m"
+ # memory: "0.1Gi"
requests:
- cpu: 5m
- memory: 310Mi
+ cpu: "5m"
+ memory: "0.3Gi"
## Elasticsearch master-eligible container's liveness and readiness probes
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
diff --git a/kubernetes/common/elasticsearch/values.yaml b/kubernetes/common/elasticsearch/values.yaml
index c3352ae424..e1c8f72258 100644
--- a/kubernetes/common/elasticsearch/values.yaml
+++ b/kubernetes/common/elasticsearch/values.yaml
@@ -94,11 +94,11 @@ resources:
## choice for the user. This also increases chances charts run on environments with little
## resources, such as Minikube.
limits: {}
- # cpu: 100m
- # memory: 128Mi
+ # cpu: "100m"
+ # memory: "0.1Gi"
requests:
- cpu: 25m
- memory: 256Mi
+ cpu: "25m"
+ memory: "0.2Gi"
## Elasticsearch coordinating-only container's liveness and readiness probes
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
diff --git a/kubernetes/common/etcd-init/templates/job.yaml b/kubernetes/common/etcd-init/templates/job.yaml
index a517264d57..64c8b44071 100644
--- a/kubernetes/common/etcd-init/templates/job.yaml
+++ b/kubernetes/common/etcd-init/templates/job.yaml
@@ -47,6 +47,13 @@ spec:
fieldPath: metadata.namespace
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
containers:
- name: {{ include "common.name" . }}
image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}
diff --git a/kubernetes/common/etcd-init/values.yaml b/kubernetes/common/etcd-init/values.yaml
index 721bcb70f3..c9eac927eb 100644
--- a/kubernetes/common/etcd-init/values.yaml
+++ b/kubernetes/common/etcd-init/values.yaml
@@ -59,18 +59,18 @@ flavor: small
resources:
small:
limits:
- cpu: 100m
- memory: 500Mi
+ cpu: "100m"
+ memory: "0.5Gi"
requests:
- cpu: 10m
- memory: 10Mi
+ cpu: "10m"
+ memory: "0.01Gi"
large:
limits:
- cpu: 200m
- memory: 500Mi
+ cpu: "200m"
+ memory: "0.5Gi"
requests:
- cpu: 20m
- memory: 20Mi
+ cpu: "20m"
+ memory: "0.02Gi"
unlimited: {}
#Pods Service Account
diff --git a/kubernetes/common/mariadb-galera/values.yaml b/kubernetes/common/mariadb-galera/values.yaml
index be7ad8ef07..4a990768a0 100644
--- a/kubernetes/common/mariadb-galera/values.yaml
+++ b/kubernetes/common/mariadb-galera/values.yaml
@@ -592,18 +592,18 @@ flavor: small
resources:
small:
limits:
- cpu: '1'
- memory: 4Gi
+ cpu: "1"
+ memory: "4Gi"
requests:
- cpu: 500m
- memory: 2Gi
+ cpu: "500m"
+ memory: "2Gi"
large:
limits:
- cpu: '2'
- memory: 6Gi
+ cpu: "2"
+ memory: "6Gi"
requests:
- cpu: '1'
- memory: 3Gi
+ cpu: "1"
+ memory: "3Gi"
unlimited: {}
## MariaDB Galera containers' liveness and readiness probes
@@ -668,11 +668,11 @@ metrics:
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
- cpu: 0.5
- memory: 256Mi
+ cpu: "0.5"
+ memory: "0.2Gi"
requests:
- cpu: 0.5
- memory: 256Mi
+ cpu: "0.5"
+ memory: "0.2Gi"
## MariaDB Galera metrics container's liveness and readiness probes
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
diff --git a/kubernetes/common/mariadb-init/templates/job.yaml b/kubernetes/common/mariadb-init/templates/job.yaml
index f41f5232a9..288ea8e02e 100644
--- a/kubernetes/common/mariadb-init/templates/job.yaml
+++ b/kubernetes/common/mariadb-init/templates/job.yaml
@@ -51,6 +51,13 @@ spec:
fieldPath: metadata.namespace
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
containers:
- name: {{ include "common.name" . }}
image: {{ include "repositoryGenerator.image.mariadb" . }}
diff --git a/kubernetes/common/mariadb-init/values.yaml b/kubernetes/common/mariadb-init/values.yaml
index fb2e202fd0..9a4b4b369b 100644
--- a/kubernetes/common/mariadb-init/values.yaml
+++ b/kubernetes/common/mariadb-init/values.yaml
@@ -125,18 +125,18 @@ flavor: small
resources:
small:
limits:
- cpu: 100m
- memory: 500Mi
+ cpu: "100m"
+ memory: "0.5Gi"
requests:
- cpu: 10m
- memory: 10Mi
+ cpu: "10m"
+ memory: "0.01Gi"
large:
limits:
- cpu: 200m
- memory: 500Mi
+ cpu: "200m"
+ memory: "0.5Gi"
requests:
- cpu: 20m
- memory: 20Mi
+ cpu: "20m"
+ memory: "0.02Gi"
unlimited: {}
#Pods Service Account
diff --git a/kubernetes/common/mongo/values.yaml b/kubernetes/common/mongo/values.yaml
index caab71890d..0d098d86a8 100644
--- a/kubernetes/common/mongo/values.yaml
+++ b/kubernetes/common/mongo/values.yaml
@@ -101,18 +101,18 @@ ingress:
resources:
small:
limits:
- cpu: 100m
- memory: 200Mi
+ cpu: "100m"
+ memory: "0.2Gi"
requests:
- cpu: 10m
- memory: 50Mi
+ cpu: "10m"
+ memory: "0.05Gi"
large:
limits:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
requests:
- cpu: 1
- memory: 2Gi
+ cpu: "1"
+ memory: "2Gi"
unlimited: {}
sdnctlPrefix: mongo
diff --git a/kubernetes/common/network-name-gen/templates/deployment.yaml b/kubernetes/common/network-name-gen/templates/deployment.yaml
index 1eed35c0c5..010ec0f66a 100644
--- a/kubernetes/common/network-name-gen/templates/deployment.yaml
+++ b/kubernetes/common/network-name-gen/templates/deployment.yaml
@@ -43,6 +43,13 @@ spec:
fieldPath: metadata.namespace
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
containers:
- name: {{ include "common.name" . }}
command:
diff --git a/kubernetes/common/postgres-init/values.yaml b/kubernetes/common/postgres-init/values.yaml
index 5a9f445afb..7e70019d73 100644
--- a/kubernetes/common/postgres-init/values.yaml
+++ b/kubernetes/common/postgres-init/values.yaml
@@ -76,18 +76,18 @@ flavor: small
resources:
small:
limits:
- cpu: 100m
- memory: 300Mi
+ cpu: "100m"
+ memory: "0.3Gi"
requests:
- cpu: 10m
- memory: 90Mi
+ cpu: "10m"
+ memory: "0.09Gi"
large:
limits:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
requests:
- cpu: 1
- memory: 2Gi
+ cpu: "1"
+ memory: "2Gi"
unlimited: {}
#Pods Service Account
diff --git a/kubernetes/common/postgres/values.yaml b/kubernetes/common/postgres/values.yaml
index 977e7d5c3b..5671f018ff 100644
--- a/kubernetes/common/postgres/values.yaml
+++ b/kubernetes/common/postgres/values.yaml
@@ -160,18 +160,18 @@ flavor: small
resources:
small:
limits:
- cpu: 100m
- memory: 300Mi
+ cpu: "100m"
+ memory: "0.3Gi"
requests:
- cpu: 10m
- memory: 90Mi
+ cpu: "10m"
+ memory: "0.09Gi"
large:
limits:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
requests:
- cpu: 1
- memory: 2Gi
+ cpu: "1"
+ memory: "2Gi"
unlimited: {}
metrics:
@@ -200,11 +200,11 @@ metrics:
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
- cpu: 0.5
- memory: 256Mi
+ cpu: "0.5"
+ memory: "0.2Gi"
requests:
- cpu: 0.5
- memory: 256Mi
+ cpu: "0.5"
+ memory: "0.2Gi"
## Postgres metrics container's liveness and readiness probes
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
diff --git a/kubernetes/common/readinessCheck/values.yaml b/kubernetes/common/readinessCheck/values.yaml
index 128c5057cc..2fdb613c29 100644
--- a/kubernetes/common/readinessCheck/values.yaml
+++ b/kubernetes/common/readinessCheck/values.yaml
@@ -19,8 +19,8 @@ user: 100
group: 65533
limits:
- cpu: 100m
- memory: 100Mi
+ cpu: "100m"
+ memory: "0.5Gi"
requests:
- cpu: 3m
- memory: 20Mi
+ cpu: "3m"
+ memory: "0.02Gi"
diff --git a/kubernetes/common/timescaledb/values.yaml b/kubernetes/common/timescaledb/values.yaml
index 72a4b6ffd0..b4070bb810 100644
--- a/kubernetes/common/timescaledb/values.yaml
+++ b/kubernetes/common/timescaledb/values.yaml
@@ -63,18 +63,18 @@ flavor: small
resources:
small:
limits:
- cpu: 100m
- memory: 300Mi
+ cpu: "100m"
+ memory: "0.3Gi"
requests:
- cpu: 10m
- memory: 90Mi
+ cpu: "10m"
+ memory: "0.09Gi"
large:
limits:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
requests:
- cpu: 1
- memory: 2Gi
+ cpu: "1"
+ memory: "2Gi"
unlimited: {}
nodeSelector: {}