The Multi-cluster Control Plane (MCCP) component stores incoming data from the connected clusters in a database. It
supports sqlite and postgres databases. To configure the type of database, modify the
config.yaml file at your cluster directory:
The database defaults to sqlite which will be stored as a file in a persistent volume in the cluster. When opting for a postgres database, credentials can be provided before
fleetManagement feature in
If you are opt for a postgres database, credentials for your user can be provided by generating a sealed secret in the following way:
Then copy the generated file into your
cluster/manifests directory, create a git commit and push.
After a few seconds the secret should be created in your cluster. Verify the status of the pods in
and the logs of the
event-writer pod to assert that it was able to connect to the database:
If your cluster supports persistent volume storage and has a storage class defined, it is possible to
set it for the MCCP SQLite database, as by default it will use a
hostPath volume, which is
not suitable for production.
To set the storage class, configure the following in your
Then, uncomment the sample persistent volume claim manifest
modify it according to your storage class and size requirements, finally git commit and push.