Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.02 KB

File metadata and controls

30 lines (26 loc) · 1.02 KB

How to deploy:

Step 1: Config DB.

  1. Set up Bitnami Repo
helm repo add bitnami https://charts.bitnami.com/bitnami
  1. Creating a PersistentVolume (PV) and a PersistentVolumeClaim (PVC)
kubectl postgres-storage.yaml
  1. Install Helm Postgres Chart into cluster.
helm install co-working -f value.yaml bitnami/postgresql --set volumePermissions.enabled=true

Step 2: Create a Dockerfile for the Python application and build codeBuild to create and push image into AWS ECR.

Create a CodeBuild project to connect with the repository and build the Image into AWS ECR and configure it to trigger a build each time there is a merge in the repo

Step 3: Create a service and deployment using Kubernetes configuration files to deploy the application.

  1. Create a service and deployment yaml file
  2. Apply configMap, secret, application deployment, application service into cluster
kubectl apply -f deployments/

Step 4: Verify.

kubectl get pods