Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 1.09 KB

README.md

File metadata and controls

78 lines (50 loc) · 1.09 KB

Runbook for Deploying Helm Charts

Prerequisites

  • Make sure you have Helm v3.x installed.
  • Make sure you have access to a Kubernetes cluster.

Steps

Packaging Python Flask App

  1. Navigate to the Helm chart directory
cd helm-project/charts/my-python-app
  1. Lint the chart to catch issues
helm lint
  1. Package the chart
helm package .

Deploying Redis Cluster

  1. Add the Bitnami Helm repo
helm repo add bitnami https://charts.bitnami.com/bitnami
  1. Install Redis with overridden values
helm install my-redis bitnami/redis --set usePassword=false

Deploy Custom Python App

  1. Navigate to your Helm project directory
cd helm-project
  1. Deploy the chart
helm install my-python-app ./charts/my-python-app

Verification

  • To check if your Python app is running, use:
kubectl get pods
  • To check if Redis is running, use:
helm ls

Rollback (Bonus)

To rollback a release, you can use:

helm rollback <RELEASE_NAME> <REVISION>