The difficult part is done. Deploying kubernetes configuration is a breeze. First and foremost, we need to create a K8s namespace, as shown here:
$ kubectl create namespace "sm-talent-search-engine"
Let's focus on auth-service first. ConfigMaps and Secrets needs to be deployed before the Deployment, as they are used it. We are mounting Secrets and ConfigMaps into our pod. If they don't already exist in the same namespace, the deployment will fail:
$ cd auth-app/
$ kubectl apply -f 10-cmaps.yml -n sm-talent-search-engine
$ kubectl apply -f 10-secrets.yml -n sm-talent-search-engine
The creation is almost instant. You can verify it by visiting the dashboard at http://127.0.0.1:8001. Switch the namespace from default to sm-talent-search-engine first. In the sidebar menu on the left-hand side, click on ConfigMaps.
Then, we will deploy deployment followed by...