Skip to content

Lawrence9908/Operationalizing-a-Coworking-Space-Microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operationalizing a Coworking Space Microservice

Project Overview: Coworking Space Service

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.

Step 1: Set Up a Postgres Database with Helm Chart

Pre-requisites:

  • Have Kubernetes cluster ready.
  • Have kubectl installed and configured to interact with your cluster.
  • Have Helm installed.

Instructions:

  1. Install Helm:
    curl -LO https://get.helm.sh/helm-v3.12.2-linux-amd64.tar.gz
  2. Add the Bitnami Helm Repository:
    helm repo add bitnami https://charts.bitnami.com/bitnami
    helm repo update
  3. Install the PostgreSQL Chart:
    helm install my-postgres bitnami/postgresql
  4. Verify the Installation:
    helm list
    kubectl get pods
  5. Get the PostgreSQL Connection Details:
    export POSTGRES_PASSWORD=$(kubectl get secret --namespace default my-postgres-postgresql -o jsonpath="{.data.postgres-password}" | base64 --decode)

Create a Dockerfile for the Python Application

Dockerfile Dockerfile

Write a Build Pipeline with AWS CodeBuild

buildspec File buildspec

BulidCode

Create Kubernetes Service and Deployment

  1. List Services

    kubectl get svc
    kubectl describe svc
  2. List Pods

    kubectl get pods
    kubectl describe pods
  3. List Deployments

    kubectl get deployments
    kubectl describe deployment project3-api

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors