database
A database and the credentials for it. A provider creates the database on a bound Postgres or MySQL instance.
Example
Section titled “Example”apps.myapp.main.needs.database = { engine = "postgres"; name = "myapp";};You set
Section titled “You set”engineone of "postgres", "mysql"Database engine.
- Default
"postgres"
password.keystringKey inside the Secret.
password.namestringKubernetes Secret object name.
password.namespacenull or stringNamespace of the Secret. Defaults to the namespace of the consumer that reads it.
- Default
null
providernull or (podule provider reference (apps.<type>.<instance> or impl.<contract>.<name>))Overrides providers.database for this need.
- Default
null
You set, or the provider fills it
Section titled “You set, or the provider fills it”namenull or stringDatabase name. Defaults to the name the provider creates.
- Default
null
The provider writes
Section titled “The provider writes”hostnull or stringBound host. Written by the database provider.
- Default
null
passwordnull or (submodule)Bound secretRef for the password. Written by the database provider.
- Default
null
portnull or 16 bit unsigned integer; between 0 and 65535 (both inclusive)Bound port. Written by the database provider.
- Default
null
usernull or stringBound user. Written by the database provider.
- Default
null