🌵 Create k8s deployment for webapp and migration
sydrawat01 opened this issue · 0 comments
sydrawat01 commented
- k8s
deployment
which will create areplicaSet
with minimum 1 replicas. - The
replicaSet
consists of acontainer
which will run ourwebapp
REST API service and aninitContainer
which will run our database migration scripts usingflyway
. - The
initContainer
runs before thewebapp
(container) is up and running. - Use k8s
ConfigMaps
andSecrets
to configure the environment variables for the various containers andinitContainer
within thereplicaSet
.