Embedded SQLite
By default, vCluster uses embedded SQLite with a PersistentVolume resource to store data.
You can turn off PersistentVolume sync for testing, where losing data on restarts is acceptable.
Disable SQLite
controlPlane:
backingStore:
database:
embedded:
enabled: false
Disable SQLite if you want to use a different database. See External database for configuration details.
Config reference
embedded
required object pro
Embedded defines that an embedded database (sqlite) should be used as the backend for the virtual cluster
embedded
required object proenabled
required boolean false pro
Enabled defines if the database should be used.
enabled
required boolean false prodataSource
required string pro
DataSource is the kine dataSource to use for the database. This depends on the database format.
This is optional for the embedded database. Examples:
- mysql: mysql://username:password@tcp(hostname:3306)/k3s
- postgres: postgres://username:password@hostname:5432/k3s
dataSource
required string prokeyFile
required string pro
KeyFile is the key file to use for the database. This is optional.
keyFile
required string procertFile
required string pro
CertFile is the cert file to use for the database. This is optional.
certFile
required string procaFile
required string pro
CaFile is the ca file to use for the database. This is optional.
caFile
required string pro