Installing DevOps Plan with external databases and optional email server settings

DevOps Plan requires a PostGreSQL database to create TeamSpace and Applications. The PostGreSQL database may be running in your cluster or on hardware that resides outside of your cluster. The values used to connect to the database are required when installing DevOps Plan. The DevOps Plan helm chart provides the PostGreSQL database by default settings. You can disable it and use your own PostGreSQL database.

Before you begin

Note: If you have already installed DevOps Plan with the internal PostgreSQL database and you plan to upgrade to the latest release version, then you must set the internal PostgreSQL database password during the helm upgrade. Get the password for the internal PostgreSQL database by running the following command:
        ```bash
        export POSTGRES_PASSWORD=$(kubectl get secret --namespace devopsplan ibm-devopsplan-ibm-devopsplan-prod-db-secret -o jsonpath="{.data.tenant-datastore-password}" | base64 -d)
        ```
       Set the password during the upgrade:
        ```bash
        --set spring.datastore.password=$POSTGRES_PASSWORD \
        --set tenant.datastore.password=$POSTGRES_PASSWORD
        ```

Procedure

  1. Create a file named devopsplan.yaml. Add database connection data and disable the PostGreSQL service.
    ## Spring datastore settings (Only PostgreSQL)
    spring:
      datastore:
        url: "jdbc:postgresql://[DATABASE_HOST]:[DATABASE_PORT]/[DATABASE_NAME]"
        username: [DATABASE_USERNAME]
        password: [DATABASE_PASSWORD]
    
    ## Email server settings (0ptional)
      mail:
        host: [MAIL_SERVER]
        port: [MAIL_PORT]
        username: [YOUR_MAIL_USERNAME]
        password: [YOUR_MAIL_PASSWORD]
    
    ## Tenant datastore settings (Only PostgreSQL)
    tenant:
      datastore:
        server: [DATABASE_SERVER_NAME]
        dbname: [DATABASE_NAME]
        username: [DATABASE_USERNAME]
        password: [DATABASE_PASSWORD]
    
    ## The email has to delivered from (optional)
      email:
        fromaddress: [FROM_EMAIL_ADDRESS]
    
    postgresql:
      enabled: false 
  2. Add -f devopsplan.yaml to the helm install or help upgrade command.