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
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
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](https://private-user-images.githubusercontent.com/69693530/331153619-5fcdc924-dfa7-40c3-9e1b-c3923bd19e07.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4ODg2NDQsIm5iZiI6MTcyNTg4ODM0NCwicGF0aCI6Ii82OTY5MzUzMC8zMzExNTM2MTktNWZjZGM5MjQtZGZhNy00MGMzLTllMWItYzM5MjNiZDE5ZTA3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA5VDEzMjU0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3OTJmMzBjOTdiMDFlMGVkNzM0ZWZlNDFjNGE5MTVjNTMzYmI0YjM0N2ZlZjBiNDUzYWJhZGE0ODU0OTgzZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fJ2MPAWsYfFzJtO_M8f4PgYx5b3U0G6M9BYDy3DuVVU)
![image](https://private-user-images.githubusercontent.com/69693530/331153293-a7b80580-9a3f-467b-870c-1b10bfdda5d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4ODg2NDQsIm5iZiI6MTcyNTg4ODM0NCwicGF0aCI6Ii82OTY5MzUzMC8zMzExNTMyOTMtYTdiODA1ODAtOWEzZi00NjdiLTg3MGMtMWIxMGJmZGRhNWQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA5VDEzMjU0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdkOWUyZmY5MWNkOTZkYjAzNTRhZTcyYzAzMWRkM2IyYWNkZGRiM2ZjODI0ZDdiZmExZDhhODg4Y2M4MTU3MmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.luQah7aV1_FaNiF86w2dTaEEf28PlzyGUWI6m4yRKUc)
![image](https://private-user-images.githubusercontent.com/69693530/331154639-e2544246-919c-4e43-a119-cff043416925.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4ODg2NDQsIm5iZiI6MTcyNTg4ODM0NCwicGF0aCI6Ii82OTY5MzUzMC8zMzExNTQ2MzktZTI1NDQyNDYtOTE5Yy00ZTQzLWExMTktY2ZmMDQzNDE2OTI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA5VDEzMjU0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1ZmYyYzk3YjhjYjIxN2I3YmM5YzY3M2QyZjk1MDJiMTJhNjg0ODQyYjQ2MDY5NTEzMTAxZWQxNmMzOGZkYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.w7ktoSEWSbs_bSZaueoTx-sS1Ds19EjqKfSsLm5U11Y)
![image](https://private-user-images.githubusercontent.com/69693530/331154838-3e57064f-570a-402c-884a-d9e0f6814e95.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4ODg2NDQsIm5iZiI6MTcyNTg4ODM0NCwicGF0aCI6Ii82OTY5MzUzMC8zMzExNTQ4MzgtM2U1NzA2NGYtNTcwYS00MDJjLTg4NGEtZDllMGY2ODE0ZTk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA5VDEzMjU0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjYjUxZjBmZTUyMDk3ZGEzNzY5ZjBjOTYyMWEwNDdkY2VmYjQ0Y2I3MmY0NGNjM2U2YWYzMzhkODhkNzY4Y2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OINKlG7UcGvdd8F3ALz6Gcug8OBYnvcRiOFikmtzCAw)
![image](https://private-user-images.githubusercontent.com/69693530/331152166-df764f1e-00ba-471b-9674-fba4cf10e4b2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4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IwMjQwOTA5VDEzMjU0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiYWViOWE2NWJiYzE4Zjk2ZTJjN2YyOTBiYmU0MDg5ZGUyOGVmYjNjOGJlMmJkYjFhNGI3NTc2NTAzNmMwN2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cwaVO_C3pGoJkm3qVatz6oK9Dzq1MxLpg5iCzBMFueI)
![image](https://private-user-images.githubusercontent.com/69693530/331152767-0612c2fb-ce6f-4aa0-936a-40584cbe6688.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4ODg2NDQsIm5iZiI6MTcyNTg4ODM0NCwicGF0aCI6Ii82OTY5MzUzMC8zMzExNTI3NjctMDYxMmMyZmItY2U2Zi00YWEwLTkzNmEtNDA1ODRjYmU2Njg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA5VDEzMjU0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0ODU5ZWNkMjk2MWFlNTYzNGVjNjdhNjk0Mzc0MTU5YTVlMWFkMmY0ZDIwZTQxNWM4NDk2YjQ0ODMxNjRiNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YozpNm2svTjEpkS6qFupK4-K5v1MA1s4UjpxYhOd3pE)
![image](https://private-user-images.githubus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