Deploying Containerized PostgreSQL Database
Installation of PostgreSQL database is not required for PostgreSQL database setup. The Dockerfile located inside fcdb directory inherits from library/postgres:14
which is an official image of PostgreSQL database. The same Dockerfile also creates a database schema necessary for
TIBCO Product and Service Catalog. For deploying PostgreSQL, perform the following steps:
- Procedure
- To create fcdb, ensure that the following values are entered in
fcdb.json
:Kind: DeploymentApp in matchLabels: fc (this value must be same as the value of the app in selector infcdbservice.json
)Tier in matchLabels: PostgreSQL (this value must be same as the value of the app in selector infcdbservice.json
)Image: Docker registry url of image with latest tagName in imagePullSecrets: Name of the registry credentials created to pull the images - Run the following command to create
fcdb.json
:$ kubectl create -f fcdb.json
- To create fcdbservice, ensure that the following values are entered in
fcdbservice.json
:Kind: ServiceType: LoadBalancerName: tcpProtocol: TCPPort: 5432targetPort: 5432 - Run the following command to create
fcdbservice
:$ kubectl create -f fcdbservice.json