You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "sergey-safarov (via GitHub)" <gi...@apache.org> on 2025/12/28 12:12:46 UTC

[I] [ENHANCEMENT]: configure zone using config file [couchdb]

sergey-safarov opened a new issue, #5834:
URL: https://github.com/apache/couchdb/issues/5834

   ### Provide a brief overview of what the new feature is all about
   
   In K8s deployment I can set node zone using variable `COUCHDB_ZONE`.
   This works for most of cases that is fine.
   But sometime you need to override zone and set to `none`.
   It will be fine to override zone from `initContainer` like place `/opt/couchdb/etc/local.d/zone.ini` file with content
   ```
   [couchdb]
   couchdb_zone = none
   ```
   Could you add this feature.
   
   ### Tell us how the new feature should work. Be specific
   
   _No response_
   
   ### Not required. Suggest how to implement the addition or change
   
   _No response_
   
   ### Additional Context
   
   it simplify CouchDB StatefulSet description.


-- 
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: notifications-unsubscribe@couchdb.apache.org.apache.org

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


Re: [I] [ENHANCEMENT]: configure zone using config file [couchdb]

Posted by "sergey-safarov (via GitHub)" <gi...@apache.org>.
sergey-safarov commented on issue #5834:
URL: https://github.com/apache/couchdb/issues/5834#issuecomment-3694766249

   Yes I can set environment variable using this pod definition
   ```
         containers:
         - name: couchdb
           image: {{ .Values.couchdb.image }}
           command: ["/bin/sh", "-c"]
           args:
           - |
             set -x
             COUCHDB_ZONE=$(grep -oP "(?<=^couchdb_zone = )\S+" /opt/couchdb/etc/local.d/zone.ini)
             export COUCHDB_ZONE
             exec /docker-entrypoint.sh couchdb
   ```
   Here is `/opt/couchdb/etc/local.d/zone.ini` created in initContainer with content like in message above.
   
   This request just for simplify pod management.


-- 
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: notifications-unsubscribe@couchdb.apache.org

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


Re: [I] [ENHANCEMENT]: configure zone using config file [couchdb]

Posted by "sergey-safarov (via GitHub)" <gi...@apache.org>.
sergey-safarov closed issue #5834: [ENHANCEMENT]: configure zone using config file
URL: https://github.com/apache/couchdb/issues/5834


-- 
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: notifications-unsubscribe@couchdb.apache.org

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


Re: [I] [ENHANCEMENT]: configure zone using config file [couchdb]

Posted by "willholley (via GitHub)" <gi...@apache.org>.
willholley commented on issue #5834:
URL: https://github.com/apache/couchdb/issues/5834#issuecomment-3694760630

   What is the scenario when you'd need to set the zone to none but cannot unset the environment variable or edit the nodes database?
   


-- 
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: notifications-unsubscribe@couchdb.apache.org

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


Re: [I] [ENHANCEMENT]: configure zone using config file [couchdb]

Posted by "sergey-safarov (via GitHub)" <gi...@apache.org>.
sergey-safarov commented on issue #5834:
URL: https://github.com/apache/couchdb/issues/5834#issuecomment-3694866452

   I think this is a rarely used case and this ticket can be closed.


-- 
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: notifications-unsubscribe@couchdb.apache.org

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