From 1dd7c7ee25b20e0e567e69dd904fb62b0d118722 Mon Sep 17 00:00:00 2001 From: taroface Date: Thu, 5 Nov 2020 10:56:04 -0500 Subject: [PATCH] cloud: update resource requests/limits in StatefulSet configs --- .../cockroachdb-statefulset.yaml | 11 ++++++++++ .../cockroachdb-statefulset-secure.yaml | 12 ++++------ cloud/kubernetes/cockroachdb-statefulset.yaml | 12 ++++------ .../cockroachdb-statefulset-secure-eks.yaml | 10 ++++----- .../cockroachdb-statefulset-insecure.yaml | 22 ++++++++----------- .../cockroachdb-statefulset-secure.yaml | 22 ++++++++----------- 6 files changed, 42 insertions(+), 47 deletions(-) diff --git a/cloud/kubernetes/bring-your-own-certs/cockroachdb-statefulset.yaml b/cloud/kubernetes/bring-your-own-certs/cockroachdb-statefulset.yaml index 35bbc0ea8e19..bbad81ae4b04 100644 --- a/cloud/kubernetes/bring-your-own-certs/cockroachdb-statefulset.yaml +++ b/cloud/kubernetes/bring-your-own-certs/cockroachdb-statefulset.yaml @@ -154,6 +154,17 @@ spec: - name: cockroachdb image: cockroachdb/cockroach:v20.1.8 imagePullPolicy: IfNotPresent + # TODO: Change these to appropriate values for the hardware that you're running. You can see + # the resources that can be allocated on each of your Kubernetes nodes by running: + # kubectl describe nodes + # Note that requests and limits should have identical values. + # resources: + # requests: + # cpu: "16" + # memory: "8Gi" + # limits: + # cpu: "16" + # memory: "8Gi" ports: - containerPort: 26257 name: grpc diff --git a/cloud/kubernetes/cockroachdb-statefulset-secure.yaml b/cloud/kubernetes/cockroachdb-statefulset-secure.yaml index 593bf6cce30c..e989d3da5067 100644 --- a/cloud/kubernetes/cockroachdb-statefulset-secure.yaml +++ b/cloud/kubernetes/cockroachdb-statefulset-secure.yaml @@ -197,20 +197,16 @@ spec: image: cockroachdb/cockroach:v20.1.8 imagePullPolicy: IfNotPresent # TODO: Change these to appropriate values for the hardware that you're running. You can see - # the amount of allocatable resources on each of your Kubernetes nodes by running: + # the resources that can be allocated on each of your Kubernetes nodes by running: # kubectl describe nodes + # Note that requests and limits should have identical values. # resources: # requests: # cpu: "16" # memory: "8Gi" # limits: - # NOTE: Unless you have enabled the non-default Static CPU Management Policy - # and are using an integer number of CPUs, we don't recommend setting a CPU limit. - # See: - # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#static-policy - # https://github.com/kubernetes/kubernetes/issues/51135 - # cpu: "16" - # memory: "8Gi" + # cpu: "16" + # memory: "8Gi" ports: - containerPort: 26257 name: grpc diff --git a/cloud/kubernetes/cockroachdb-statefulset.yaml b/cloud/kubernetes/cockroachdb-statefulset.yaml index 57c40dcee2c5..7f4150c4121e 100644 --- a/cloud/kubernetes/cockroachdb-statefulset.yaml +++ b/cloud/kubernetes/cockroachdb-statefulset.yaml @@ -100,20 +100,16 @@ spec: image: cockroachdb/cockroach:v20.1.8 imagePullPolicy: IfNotPresent # TODO: Change these to appropriate values for the hardware that you're running. You can see - # the amount of allocatable resources on each of your Kubernetes nodes by running: + # the resources that can be allocated on each of your Kubernetes nodes by running: # kubectl describe nodes + # Note that requests and limits should have identical values. # resources: # requests: # cpu: "16" # memory: "8Gi" # limits: - # NOTE: Unless you have enabled the non-default Static CPU Management Policy - # and are using an integer number of CPUs, we don't recommend setting a CPU limit. - # See: - # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#static-policy - # https://github.com/kubernetes/kubernetes/issues/51135 - # cpu: "16" - # memory: "8Gi" + # cpu: "16" + # memory: "8Gi" ports: - containerPort: 26257 name: grpc diff --git a/cloud/kubernetes/multiregion/eks/cockroachdb-statefulset-secure-eks.yaml b/cloud/kubernetes/multiregion/eks/cockroachdb-statefulset-secure-eks.yaml index 304a2dfaec68..e34d2b116cc1 100644 --- a/cloud/kubernetes/multiregion/eks/cockroachdb-statefulset-secure-eks.yaml +++ b/cloud/kubernetes/multiregion/eks/cockroachdb-statefulset-secure-eks.yaml @@ -186,17 +186,17 @@ spec: - name: cockroachdb image: cockroachdb/cockroach:v20.1.8 imagePullPolicy: IfNotPresent - # TODO: Change these to appropriate values for the hardware that you're running. You can see the amount of allocatable resources on each of your Kubernetes nodes by running: kubectl describe nodes + # TODO: Change these to appropriate values for the hardware that you're running. You can see + # the resources that can be allocated on each of your Kubernetes nodes by running: + # kubectl describe nodes + # Note that requests and limits should have identical values. # resources: # requests: # cpu: "16" # memory: "8Gi" - # NOTE: Unless you have enabled the non-default Static CPU Management Policy and are using an integer number of CPUs, we don't recommend setting a CPU limit. See: - # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#static-policy - # https://github.com/kubernetes/kubernetes/issues/51135 # limits: # cpu: "16" - # memory: "8Gi" + # memory: "8Gi" ports: - containerPort: 26257 name: grpc diff --git a/cloud/kubernetes/performance/cockroachdb-statefulset-insecure.yaml b/cloud/kubernetes/performance/cockroachdb-statefulset-insecure.yaml index 4b577bce78a6..3d002c8154b6 100644 --- a/cloud/kubernetes/performance/cockroachdb-statefulset-insecure.yaml +++ b/cloud/kubernetes/performance/cockroachdb-statefulset-insecure.yaml @@ -143,20 +143,16 @@ spec: image: cockroachdb/cockroach:v20.1.8 imagePullPolicy: IfNotPresent # TODO: Change these to appropriate values for the hardware that you're running. You can see - # the amount of allocatable resources on each of your Kubernetes nodes by running: + # the resources that can be allocated on each of your Kubernetes nodes by running: # kubectl describe nodes - resources: - requests: - cpu: "16" - memory: "8Gi" - limits: - # NOTE: Unless you have enabled the non-default Static CPU Management Policy - # and are using an integer number of CPUs, we don't recommend setting a CPU limit. - # See: - # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#static-policy - # https://github.com/kubernetes/kubernetes/issues/51135 - #cpu: "16" - memory: "8Gi" + # Note that requests and limits should have identical values. + # resources: + # requests: + # cpu: "16" + # memory: "8Gi" + # limits: + # cpu: "16" + # memory: "8Gi" ports: - containerPort: 26257 name: grpc diff --git a/cloud/kubernetes/performance/cockroachdb-statefulset-secure.yaml b/cloud/kubernetes/performance/cockroachdb-statefulset-secure.yaml index ce125b440948..e36758c4a9f6 100644 --- a/cloud/kubernetes/performance/cockroachdb-statefulset-secure.yaml +++ b/cloud/kubernetes/performance/cockroachdb-statefulset-secure.yaml @@ -234,20 +234,16 @@ spec: image: cockroachdb/cockroach:v20.1.8 imagePullPolicy: IfNotPresent # TODO: Change these to appropriate values for the hardware that you're running. You can see - # the amount of allocatable resources on each of your Kubernetes nodes by running: + # the resources that can be allocated on each of your Kubernetes nodes by running: # kubectl describe nodes - resources: - requests: - cpu: "16" - memory: "8Gi" - limits: - # NOTE: Unless you have enabled the non-default Static CPU Management Policy - # and are using an integer number of CPUs, we don't recommend setting a CPU limit. - # See: - # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#static-policy - # https://github.com/kubernetes/kubernetes/issues/51135 - #cpu: "16" - memory: "8Gi" + # Note that requests and limits should have identical values. + # resources: + # requests: + # cpu: "16" + # memory: "8Gi" + # limits: + # cpu: "16" + # memory: "8Gi" ports: - containerPort: 26257 name: grpc