Comments (2)
@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.
As of my understanding, there is three ways to handle this:
- via
configMap
:- create a
configMap
with environments variables corresponding to desired configuration - set all variables in installation manifest with
valueFrom.configMapKeyRef
- create a
- via
volumes
andvolumeMounts
:- create a
configMap
fromconfig.json
file - create a
volume
from thisconfigMap
- create a
volumeMount
of thisvolume
- set
MM_CONFIG
environment variable to point to mounted file path
- create a
- via database:
- set
MM_CONFIG
to database connection string
- set
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)
- Add e2e external test for sizes and resource constraints HOT 1
- Resource Patch e2e test HOT 2
- CVEs mitigation
- Mattermost Operator Does Not Support AWS IAM Profile for S3 Bucket Auth
- Inconsistent server behavior with several replicas (k8s) HOT 5
- Gossip traffic service / Istio injection HOT 3
- Operator does not configure port 8443 for calls
- Mattermost on Kubernetes with external MySQL database
- Postgres connection string invalid control character in URL for secret data in base64 HOT 1
- operatorhub.io still has v0.5.0 with max k8s version 1.21 as latest HOT 4
- Cannot set initial admin user with Postgres backend HOT 1
- Docs link to broken mysql-operator in k1.27.3 HOT 2
- ARM64 image is not working HOT 1
- Mattermost operator and cluster role scopes
- Mattermost is working but the cluster is reconciling
- [FEATURE]: Add support for COSI
- Service annotation 'tolerate-unready-endpoints' is deprecated HOT 1
- Postgres password rotated, can no longer connect
- Operator managed installation of mattermost with mysql and minio
- Document deployment with Gitlab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-operator.