3 ms·
You mean without a deployment or statefulset? How would you connect to the DB without a service providing a persistent DNS name?
by peterthehacker 5y ago
You mean without a deployment or statefulset? How would you connect to the DB without a service providing a persistent DNS name?
- merb 5y agoyou can create a static pod manifest in /etc/kubernetes/manifests (https://kubernetes.io/docs/reference/setup-tools/kubeadm/implementation-details/ 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.
- rafaelturk 5y agoYou can create a service point to the `pod` tag. Or a manifest.