Moodify Infrastructure Setup Guide banner
hoangsonww hoangsonww

Moodify Infrastructure Setup Guide

DevOps community intermediate

Description

Complete guide for setting up the production-ready deployment infrastructure for Moodify.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for hoangsonww/Moodify-Emotion-Music-App, shared by 3 entries in this directory. It describes the repository, not this entry specifically.

Moodify Infrastructure Setup Guide

Complete guide for setting up the production-ready deployment infrastructure for Moodify.

Table of Contents

Prerequisites

Required Tools

# Install kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/

# Install Helm
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

# Install Istio (optional, for advanced traffic management)
curl -L https://istio.io/downloadIstio | sh -
cd istio-*
export PATH=$PWD/bin:$PATH

# Install envsubst (for variable substitution)
# On macOS
brew install gettext
brew link --force gettext

# On Ubuntu/Debian
sudo apt-get install gettext-base

# Install Docker
# Follow instructions at: https://docs.docker.com/engine/install/

Cloud Provider Account

Choose one:

  • AWS (EKS)
  • Google Cloud (GKE)
  • Azure (AKS)
  • DigitalOcean (DOKS)

Access Requirements

  • Kubernetes cluster admin access
  • Docker registry (Docker Hub, ECR, GCR, ACR)
  • Git repository access
  • Jenkins instance (or CI/CD platform)

Infrastructure Overview

Architecture Diagram

graph TB
    subgraph External["External Layer"]
        LB[Load Balancer / CDN]
    end

    subgraph Ingress["Ingress Layer"]
        IC[Ingress Controller
NGINX / Istio] end subgraph BlueEnv["Blue Environment (Stable)"] BB[Backend Pods
Replicas: 3-15] BF[Frontend Pods
Replicas: 3-15] end subgraph GreenEnv["Green Environment (Candidate)"] GB[Backend Pods
Replicas: 3-15] GF[Frontend Pods
Replicas: 3-15] end subgraph CanaryEnv["Canary Deployment (10-100%)"] CB[Canary Backend
Replicas: 1-5] end subgraph Services["Shared Services Layer"] DB[(MongoDB
Database)] REDIS[(Redis
Cache)] PROM[Prometheus
Metrics] GRAF[Grafana
Dashboard] end LB --> IC IC -->|Active Traffic| BlueEnv IC -.->|Standby| GreenEnv IC -.->|10-100%| CanaryEnv BB --> DB BB --> REDIS GB --> DB GB --> REDIS CB --> DB CB --> REDIS BB --> PROM GB --> PROM CB --> PROM PROM --> GRAF style BlueEnv fill:#4A90E2,stroke:#2E5C8A,color:#fff style GreenEnv fill:#50C878,stroke:#2E7D4E,color:#fff style CanaryEnv fill:#F