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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to