mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-09 23:15:48 +02:00
Add hugepages 2Mi and 1Gi fields to ResourceDescription and pass them to the statefulset (#2311)
* Add hugepages-2Mi and 1Gi to ResourceDescription type and crd (#1549, #1788) * Add tests for hugepages resource requests/limits * Add tests for hugepages resource requests/limits on sidecars, too * Add docs for hugepages support * Add link to kubernetes docs on hugepages * Add tests for hugepages not being set on container if not requested in custom resource * Add hugepages resources fields to manifest docs * Add hugepages resources fields to complete manifest example * Add hugepages resources fields to chart crd --------- Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
This commit is contained in:
@@ -107,9 +107,13 @@ spec:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 100Mi
|
||||
# hugepages-2Mi: 128Mi
|
||||
# hugepages-1Gi: 1Gi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 500Mi
|
||||
# hugepages-2Mi: 128Mi
|
||||
# hugepages-1Gi: 1Gi
|
||||
patroni:
|
||||
failsafe_mode: false
|
||||
initdb:
|
||||
|
||||
@@ -439,6 +439,12 @@ spec:
|
||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||
# Note: the value specified here must not be zero or be higher
|
||||
# than the corresponding limit.
|
||||
hugepages-2Mi:
|
||||
type: string
|
||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||
hugepages-1Gi:
|
||||
type: string
|
||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||
requests:
|
||||
type: object
|
||||
properties:
|
||||
@@ -448,6 +454,12 @@ spec:
|
||||
memory:
|
||||
type: string
|
||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||
hugepages-2Mi:
|
||||
type: string
|
||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||
hugepages-1Gi:
|
||||
type: string
|
||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||
schedulerName:
|
||||
type: string
|
||||
serviceAnnotations:
|
||||
|
||||
Reference in New Issue
Block a user