Custom external database configuration

Java™ Database Connectivity (JDBC) is an application programming interface (API), which defines how a client accesses a database. A driver enables a Java application to interact with the database.

Download the sample configuration XML files in the cert-kubernetes repository, and modify the configuration to match your database. For more information, see Preparing a client to connect to the cluster.

Follow the configuration instructions to apply the modified configuration file in your deployment. For more information, see Checking and completing your custom resource.

Table 1. External custom database configuration
XML elements Description Example values
JDBC driver The id of the driver you want to use.
<!-- Declare the jar files for Oracle access through JDBC. -->
   <library id="OracleLib">
      <fileset dir="/drivers" includes="ojdbc*.jar"/>
   </library>
Datasource The definition of the database.
<dataSource .../>
   <jdbcDriver libraryRef="OracleLib"/>
      <properties.oracle driverType="thin"
         databaseName="xe"
         serverName="oracleServerName"
         portNumber="1521"
         user="system"
         password="oracle"/>
</dataSource>