You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openserverless.apache.org by "kladiv (via GitHub)" <gi...@apache.org> on 2025/04/15 23:06:30 UTC

[I] [OPERATOR] Postgres replicas value is not taken [openserverless]

kladiv opened a new issue, #108:
URL: https://github.com/apache/openserverless/issues/108

   - [X] I have searched the [issues](https://github.com/apache/openserverless/issues) of this repository and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   
   Operator seems not take in consideration the configured postgres component `--replicas` setting
   
   ### Ⅱ. Describe what happened
   
   Run
   
   `ops config postgres --replicas=1`
   
   to make Operator deploy only primary Postgres instance)
   
   But the Operator still deploys 2 replicas (1 primary, 1 standby)
   
   ```
   nuvolaris-postgres-1-0
   nuvolaris-postgres-2-0
   ```
   
   ### Ⅲ. Describe what you expected to happen
   
   Operator should take in consideration the `--replicas` config
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   1. ops config postgres --replicas=1
   2. deploy openserverless
   3. kubectl get pods -n nuvolaris -l app=nuvolaris-postgres
   
   ### Ⅴ. Anything else we need to know?
   
   The issue is probabily related to this line
   https://github.com/apache/openserverless-operator/blob/main/nuvolaris/util.py#L452
   
   Maybe it should be:
   
   ```diff
   - cfg.get('postgres.admin.replicas')
   + cfg.get('postgres.replicas')
   ```
   
   ### Ⅵ. Environment:
   
   - K8S Runtime and version: k3s v1.29.3+k3s1
   - OPS CLI version:  0.1.0-2409121919.dev


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [OPERATOR] Postgres replicas value is not taken [openserverless]

Posted by "francescotimperi (via GitHub)" <gi...@apache.org>.
francescotimperi closed issue #108: [OPERATOR] Postgres replicas value is not taken
URL: https://github.com/apache/openserverless/issues/108


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org