percona / roadmap

Public Percona Roadmaps
10 stars 1 forks source link

[K8SPG-503] Provide option to specify resources for the side car containers of DB instance pods #106

Closed spron-in closed 3 weeks ago

spron-in commented 4 months ago

Community Note

Tell us about the feature

Sidecar containers of the database pods are created without assigning any resources. It is not possible to define the resources for the below mentioned side car containers

{noformat}pgbackrest pgbackrest-config replication-cert-copy{noformat}

This becomes a problem when customer environment enforces resource specification.

Steps to reproduce

Create ResourceQuota using below snippet

{noformat}apiVersion: v1 kind: ResourceQuota metadata: name: high-qos-limit-requests spec: hard: limits.cpu: "10" limits.memory: 20Gi pods: "16" requests.cpu: "10" requests.memory: 20Gi scopes:

 

Workaround for this is to create a LimitRange which can assign default values for requests and limits , for example

{noformat}apiVersion: "v1" kind: "LimitRange" metadata: name: "limits" spec: limits:

However , it is good to provide options for the end-users where the users might not have the privilege to create LimitRanges. One of the easier option is also to assign a fixed resource for those side car containers , but it’s not the most flexible option.

Link to JIRA