Installation of PostgreSQL database is not required for PostgreSQL database setup. The Dockerfile located inside fcdb directory inherits from library/postgres:9.6 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: Deployment
App in matchLabels: fc (this value must be same as the value of the app in selector in
fcdbservice.json)
Tier in matchLabels: PostgreSQL (this value must be same as the value of the app in selector in fcdbservice.json)
Image: Docker registry url of image with latest tag
Name 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: