K8s is just a complicated confusing poorly documented thing for running containers. Database server processes running in a container is totally fine. Not really different than running said processes on a bare kernel like it's 2010.
For basically every core resource type, there’s a user-guide, examples, a tour of it, in-depth docs and then the api docs themselves.