Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.09 KB

README.md

File metadata and controls

66 lines (49 loc) · 1.09 KB

Kubernetes Deployment Guide

This guide explains how to deploy the CDN service on Kubernetes.

Prerequisites

  • Kubernetes cluster
  • kubectl configured
  • Docker registry access

Components

  • cdn-service: Main application deployment
  • redis: Cache service
  • configmap: Configuration values
  • service: Load balancer configuration

Deployment Steps

  1. Create namespace (optional):
kubectl create namespace cdn
kubectl config set-context --current --namespace=cdn
  1. Apply ConfigMap:
kubectl apply -f configmap.yaml
  1. Deploy Redis:
kubectl apply -f redis.yaml
  1. Deploy CDN Service:
kubectl apply -f deployment.yaml
kubectl apply -f service.yaml

Verification

Check deployment status:

kubectl get pods
kubectl get services

Check application logs:

kubectl logs -f deployment/cdn-service

Scaling

Scale the deployment:

kubectl scale deployment cdn-service --replicas=5

Monitoring

Access metrics at:

  • Health check: http://[LOAD_BALANCER_IP]/health
  • Metrics: http://[LOAD_BALANCER_IP]/metrics