Reputation: 39
I'm new in Kubernetes:
I have a multiple independent servers, they are based on spring boot java. Each server has a separate independent database, where database connection details are written in application.yml.
And I was wondering if i deploy in Kubernetes, should I have a let say 15 different deployments , basically for each application.yml?
Could you please suggest the general flow or picture?
Upvotes: 0
Views: 79
Reputation: 59966
Flexibility comes when there is less or no dependency, so yes each service should be deployed and managed with its own deployment. So deployments just manage pod, and the pod is the smallest unit of the Kubernetes application, for example, let's say we have two services login and user service. Both have different container image so we need two different pods which mean two different deployments.
It will help to scale, rollout, clean and update independently. Plus in future, if you place monitoring etc it help you to identify object from the deployment which having issue.
Services like ArgoCD which work based on GitOps approach, sync applications from the git repository so in that case, it is also easier to sync applications independently.
In addition to that, Better to use a helm each service will represent a helm chart.
Upvotes: 1