From 05a56ba36c86a9165915954c8d42550b272ec01d Mon Sep 17 00:00:00 2001 From: Alex Arica Date: Thu, 23 Sep 2021 08:32:35 +0100 Subject: [PATCH] #42 : For some reason the declaration of the properties for resource limits were not in the scheme yaml. --- Backlog | 1 - kubegres.yaml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Backlog b/Backlog index c8d275b..736d81b 100644 --- a/Backlog +++ b/Backlog @@ -1,6 +1,5 @@ By priority: #34 : Expand Storage -#43 : Increase memory of Kubegres controller #27 : Additional volumes #20 : Delete PVC #40 : Wal_level to logical diff --git a/kubegres.yaml b/kubegres.yaml index e949ee6..583f0bf 100644 --- a/kubegres.yaml +++ b/kubegres.yaml @@ -159,6 +159,28 @@ spec: replicas: format: int32 type: integer + resources: + description: ResourceRequirements describes the compute resource requirements. + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' + type: object + type: object scheduler: properties: affinity: