GithubHelp home page GithubHelp logo

helm-netflix-clone's Introduction

Helm-Netflix-Clone

Step 1 : Create cloudformation stack to create vpc and other resources
Use s3 url : https://amazon-eks.s3.us-west-2.amazonaws.com/cloudformation/2020-04-21/amazon-eks-vpc-private-subnets.yaml

Step 2 : Create IAM role

  • helm-eks-cluster-role
  • helm-eks-worker-node-role -> AmazonEC2ContainerRegistryReadOnly, AmazonEKS_CNI_Policy, AmazonEKSWorkerNodePolicy
  • Step 3: Update the config

    aws eks update-kubeconfig --region ap-south-1 --name CLUSTER_NAME --profile PROFILE_NAME 

    Step 4: Create namespace or else work default

     kubectl create ns helm 

    Step 5: Meanwhile, create helm chart

    helm create netflix-clone

    Step 6: Customize chart & values as per our requirement

    Step 7: Package the chart

     helm package netflix-clone 

    Step 8: Once clutser and nodegroup get creates, install package helm chart

     Install clone application - helm install my-netflix-clone ./netflix-clone-0.1.0.tgz

    Step 9 : To check

     kubeclt get pods -n helm 

    Step 12: To verify the deployment, check command

     kubectl get svc 

    Set up Prometheus

  • kubectl create namespace monitoring
  • kubectl config set-context --current --namespace=monitoring
  • helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
  • helm repo update
  • helm install stable prometheus-community/kube-prometheus-stack
  • kubectl get pods -l "release=stable"
  • kubectl edit svc stable-kube-prometheus-sta-prometheus >>>> Change type to LoadBalancer from ClusterIP
  • kubectl get svc
  • Set up Grafana

  • helm repo add grafana https://grafana.github.io/helm-charts
  • helm repo update
  • helm install grafana grafana/grafana
  • kubectl expose service grafana --type=NodePort --target-port=3000 --name=grafana-ext
  • kubectl edit svc stable-grafana
  • kubectl get secret grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
  • If grafana is not accepting the password in the console, do this:
  • kubectl exec --stdin --tty -- /bin/bash
  • grafana-cli admin reset-admin-password
  • Login to your grafana console

  • Navigate to Connections >> Add connections >> Search for 'Prometheus' >> Add New Data Sources
  • Provide Name, Server URL(LoadBalancer of Prometheus Server URL) and Click on 'save & test'
  • Navigate to Home >> Dashboards >> New Dashboard >> Import Dashboard and provide the ID of the the desired dashboard from https://grafana.com/grafana/dashboards/
  • image

    image

    image

    image

    image

    image

    image

    image

    helm-netflix-clone's People

    Contributors

    anukratirawal14 avatar

    Watchers

     avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.