Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated cloud deployment readme
tmanik committed Sep 1, 2024
1 parent 84b26e3 commit 528bfb0
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions 06-cloud-deployment/README.md
@@ -1,4 +1,4 @@
# 04-cloud-deployment
# 06-cloud-deployment

## Overview

@@ -24,7 +24,25 @@ Before starting this lesson, please ensure that you have:

## Lesson Content

### 4.1 Setup and GKE Cluster Creation
### 6.1 Accessing Google Cloud and Setting Up the Environment

1. Log into your provided Google Cloud account.

2. Navigate to the Google Cloud Console and open the Cloud Shell by clicking on the terminal icon in the top-right corner.

3. Once in the Cloud Shell, clone the repository containing the finished code:
```bash
git clone https://github.com/timmanik/data-pipeline-workshop
```

4. Change into the cloned directory:
```bash
cd data-pipeline-workshop
```

This repository contains the finished product of the code you've created throughout the workshop. Using this ensures a smooth deployment process.

### 6.2 Setup and GKE Cluster Creation

1. List and set your GCP project:
```bash
@@ -44,13 +62,13 @@ Before starting this lesson, please ensure that you have:
gcloud container clusters describe weather-cluster --zone=us-central1-a
```

### 4.2 Create Container Repository on Artifact Registry
### 6.3 Create Container Repository on Artifact Registry

```bash
gcloud artifacts repositories create my-docker-repo --project=$PROJECT_ID --location=us --repository-format=docker
```

### 4.3 Build and Push Docker Images
### 6.4 Build and Push Docker Images

```bash
# Navigate to the data-pipeline directory
@@ -73,7 +91,7 @@ docker build -t us-docker.pkg.dev/${PROJECT_ID}/my-docker-repo/flask-app:latest
docker push us-docker.pkg.dev/${PROJECT_ID}/my-docker-repo/flask-app:latest
```

### 4.4 Kubernetes Deployment
### 6.5 Kubernetes Deployment

1. Get cluster credentials:
```bash
@@ -115,7 +133,7 @@ docker push us-docker.pkg.dev/${PROJECT_ID}/my-docker-repo/flask-app:latest
envsubst < flask-app-service.yaml | kubectl apply -f -
```

### 4.5 Monitoring and Debugging
### 6.6 Monitoring and Debugging

Here are some useful commands for monitoring and debugging your deployment:

0 comments on commit 528bfb0

Please sign in to comment.