The Coworking Space Service is a set of APIs that enables users to request one-time tokens and administrators to authorize access to a coworking space. This service follows a microservice pattern and the APIs are split into distinct services that can be deployed and managed independently of one another. For this project, you are a DevOps engineer who will be collaborating with a team that is building an API for business analysts. The API provides business analysts with basic analytics data on user activity in the coworking space service. The application they provide you functions as expected, and you will help build a pipeline to deploy it to Kubernetes. You'll submit artefacts from the build and deployment of this service.
Pre-requisites:
- Have Kubernetes cluster ready.
- Have
kubectl
installed and configured to interact with your cluster. - Have Helm installed.
Instructions:
- Install Helm:
curl -LO https://get.helm.sh/helm-v3.12.2-linux-amd64.tar.gz
- Add the Bitnami Helm Repository:
helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update
- Install the PostgreSQL Chart:
helm install my-postgres bitnami/postgresql
- Verify the Installation:
helm list kubectl get pods
- Get the PostgreSQL Connection Details:
export POSTGRES_PASSWORD=$(kubectl get secret --namespace default my-postgres-postgresql -o jsonpath="{.data.postgres-password}" | base64 --decode)
Dockerfile Dockerfile
buildspec File buildspec
-
List Services
kubectl get svc kubectl describe svc
List Services List Describe Services Kubernetes List Describe Services Postgres DB List Describe Services Project3 API
-
List Pods
kubectl get pods kubectl describe pods
List Pods ![List Pods](Project screenshots/ListPods.png) List Describe Pods DB List Describe Pods API
-
List Deployments
kubectl get deployments kubectl describe deployment project3-api