@@ -461,6 +461,49 @@ helm -n osm install osm installers/helm/osm -f osm-values.yaml ${OSM_HELM_OPTS}
helm -n osm status osm
```
### Deploy OSM Using other databases
In case you want to use an already deployed `mysql` chart, before deploying the OSM Helm chart, edit the following values inside `devops/installers/helm/osm/values.yaml`: `global.db.mysql.mysqlSecretName`, `global.db.mysql.mysqlSecretKey`, and `global.db.mysql.mysqlService` to point to your `mysql`:
```yaml
global:
...
db:
mysql:
mysqlSecretName:mysql
mysqlSecretKey:mysql-root-password
mysqlService:mysql
```
In case you want to use an already deployed `mongodb` chart, before deploying the OSM Helm chart, edit the value `global.db.mongo.mongoService` to point to your `mongodb`.
If `mongodb` was deployed with `auth.enabled=true`, then edit the values in the OSM Helm chart to match, setting `global.db.mongo.auth.enabled=true` and using `global.db.mongo.auth.secretName` and `global.db.mongo.auth.secretKeyRootPassword` to point to the existing secret.
```yaml
global:
...
db:
mongo:
mongoService:mongodb-k8s
auth:
enabled:true
secretName:mongodb-k8s
secretKeyRootPassword:mongodb-root-password
```
Then, contiune to deploy the OSM Chart normally:
```bash
# Build the helm chart dependencies
helm dependency build installers/helm/osm
# Check that there are no errors
helm -n osm template osm installers/helm/osm -f osm-values.yaml ${OSM_HELM_OPTS}
# Deploy OSM helm chart
helm -n osm install osm installers/helm/osm -f osm-values.yaml ${OSM_HELM_OPTS}