Skip to content

Commit 9376025

Browse files
committed
fix: mongodb indexes docs
1 parent bfe25a5 commit 9376025

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

codefresh/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/
99
- [Prerequisites](#prerequisites)
1010
- [Get Repo Info](#get-repo-info)
1111
- [Install Chart](#install-chart)
12+
- [Post-installation steps](#post-installation-steps)
1213
- [Chart Configuration](#chart-configuration)
1314
- [Persistent services](#persistent-services)
1415
- [Configuring external services](#configuring-external-services)
@@ -117,6 +118,15 @@ global:
117118
# key: firebase-secret
118119
```
119120

121+
- Specify `.Values.global.env.MONGO_AUTOMATIC_INDEX_CREATION` and `.Values.global.env.MONGO_AUTOMATIC_INDEX_CREATION`
122+
123+
```yaml
124+
global:
125+
env:
126+
MONGO_AUTOMATIC_INDEX_CREATION: "true"
127+
MONGOOSE_AUTO_INDEX: "true"
128+
```
129+
120130
- Specify `.Values.ingress.tls.cert` and `.Values.ingress.tls.key` OR `.Values.ingress.tls.existingSecret`
121131

122132
```yaml
@@ -170,6 +180,17 @@ ingress-nginx:
170180
--timeout 15m
171181
```
172182

183+
## Post-installation steps
184+
185+
- Disable auto-creation of MongoDB indexes:
186+
187+
```yaml
188+
global:
189+
env:
190+
MONGO_AUTOMATIC_INDEX_CREATION: "false"
191+
MONGOOSE_AUTO_INDEX: "false"
192+
```
193+
173194
## Chart Configuration
174195

175196
See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands:

0 commit comments

Comments
 (0)