Giter Site home page Giter Site logo

Comments (2)

Szymongib avatar Szymongib commented on July 18, 2024 1

@nicolas-goudry Config in the database is the correct way. Mattermost Operator uses it by default as Operator sets MM_CONFIG based on the database configuration. Unless you want to use a different database for config, explicitly setting MM_CONFIG is not necesarry.

In regards to config in volumes, I do not think using ConfigMap is possible as ConfigMap can only be mounted as read-only while config can be changed from System Console. We also do not recommend using volumes with config.json as this is not really a tested solution.

from mattermost-operator.

nicolas-goudry avatar nicolas-goudry commented on July 18, 2024

As of my understanding, there is three ways to handle this:

  1. via configMap:
    • create a configMap with environments variables corresponding to desired configuration
    • set all variables in installation manifest with valueFrom.configMapKeyRef
  2. via volumes and volumeMounts:
    • create a configMap from config.json file
    • create a volume from this configMap
    • create a volumeMount of this volume
    • set MM_CONFIG environment variable to point to mounted file path
  3. via database:
    • set MM_CONFIG to database connection string

Please correct me if I’m wrong.

I’ll use the database stored configuration, effectively allowing backup/restore from database backup/restore process. Closing this now (sorry for the useless noise).

from mattermost-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.