You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note!** When the `digest` is providerd, the `tag` is ignored! You can omit digest and use tag only like the following `values.yaml` example:
1957
+
1958
+
```yaml
1959
+
cfapi:
1960
+
container:
1961
+
image:
1962
+
tag: 21.268.1
1963
+
# -- Set empty tag for digest
1964
+
digest: ""
1965
+
```
1966
+
1967
+
#### Auto-index creation in MongoDB
1968
+
1969
+
In Codefresh On-Prem 2.6.x, the `cfapi` can create indexes in MongoDB automatically. This feature is disabled by default. To enable it, set the following environment variable:
1970
+
1971
+
> **Note!** Enabling this feature can cause performance degradation during the index creation process.
1972
+
1973
+
> **Note!** It is recommended to add indexes during a maintenance window. The indexes list is provided in `codefresh/files/indexes/<MAJOR.MINOR>/<collection_name>.json` files.
1974
+
1975
+
```yaml
1976
+
cfapi:
1977
+
container:
1978
+
env:
1979
+
MONGOOSE_AUTO_INDEX: "true"
1980
+
```
1981
+
1982
+
Ref:
1983
+
- [Create an Index in Atlas DB](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/#create-an-index)
1984
+
- [Create an Index with mongosh](https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/)
1985
+
1931
1986
## Troubleshooting
1932
1987
1933
1988
### Error: Failed to validate connection to Docker daemon; caused by Error: certificate has expired
> **Note!** When the `digest` is providerd, the `tag` is ignored! You can omit digest and use tag only like the following `values.yaml` example:
1965
+
1966
+
```yaml
1967
+
cfapi:
1968
+
container:
1969
+
image:
1970
+
tag: 21.268.1
1971
+
# -- Set empty tag for digest
1972
+
digest: ""
1973
+
```
1974
+
1975
+
#### Auto-index creation in MongoDB
1976
+
1977
+
In Codefresh On-Prem 2.6.x, the `cfapi` can create indexes in MongoDB automatically. This feature is disabled by default. To enable it, set the following environment variable:
1978
+
1979
+
> **Note!** Enabling this feature can cause performance degradation during the index creation process.
1980
+
1981
+
> **Note!** It is recommended to add indexes during a maintenance window. The indexes list is provided in `codefresh/files/indexes/<MAJOR.MINOR>/<collection_name>.json` files.
1982
+
1983
+
```yaml
1984
+
cfapi:
1985
+
container:
1986
+
env:
1987
+
MONGOOSE_AUTO_INDEX: "true"
1988
+
```
1989
+
1990
+
Ref:
1991
+
- [Create an Index in Atlas DB](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/#create-an-index)
1992
+
- [Create an Index with mongosh](https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/)
1993
+
1994
+
1939
1995
## Troubleshooting
1940
1996
1941
1997
### Error: Failed to validate connection to Docker daemon; caused by Error: certificate has expired
0 commit comments