Hacker News new | ask | show | jobs
by peterthehacker 1719 days ago
You mean without a deployment or statefulset? How would you connect to the DB without a service providing a persistent DNS name?
2 comments

you can create a static pod manifest in /etc/kubernetes/manifests (https://kubernetes.io/docs/reference/setup-tools/kubeadm/imp...)

these manifests can be targeted with a Service.

However my preferred solution for databases inside k8s is still zalando-operator with spilo and local storage. it's rock solid. I once used kubedb and lost the database because of bugs, so I'm staying away from them. Crunchy looks solid aswell but it looks like it's a little bit more polished but harder to configure than zalando's solution which is more built to their needs.

You can create a service point to the `pod` tag. Or a manifest.