Kubernetes Horizontal Pod Autoscaler | HPA | AWS EKS Tutorial
Автор: Tech with Lian
Загружено: 2024-05-23
Просмотров: 524
Описание:
We're diving into the Horizontal Pod Autoscaler with hands on demos,
First demo, we will Use command line to create a Horizontal Pod Autoscaler,
and run load testing in nginx service to check HAP status.
Second demo, we will create another HPA with Behavior speck,
and run the same load testing again to check HAP status.
The minikube is used in my demo so demo has 0 cost.
👉🏼 Video content file: https://gitlab.com/LianDuanTrainingGr...
👉🏼 YAML files: https://gitlab.com/LianDuanTrainingGr...
🧡 Subscribe to show your support! https://bit.ly/3hrhOmW
Video Related Commands:
🌕 Start Minikube:
minikube start
minikube addons enable metrics-server
kubectl api-resources -o wide
minikube dashboard
🌕 Deploy Nginx
kubectl apply -f hpa-demo-nginx.yaml
sudo -E kubectl port-forward service/hap-demo-service 80:80
curl http://127.0.0.1/
🌕 Create Sample HPA
kubectl autoscale deployment hap-demo-deployment --cpu-percent=5 --min=1 --max=5
kubectl autoscale --help
kubectl get hpa -w
🌕 Load Testing for Sample HPA
ab -n 100000 -c 100 http://127.0.0.1/
🌕 Create HPA with Behavior
kubectl apply -f hpa-behavior-demo.yaml
Load Testing:
ab -n 100000 -c 100 http://127.0.0.1/
kubectl get hpa -w
⏰ T I M E S T A M P S ⏰
00:00 Start
01:30 Overview of K8s Autoscalers
03:30 Horizontal Pod Autoscaler
04:11 Hands-on Demos Prerequisites
06:26 Hands-on Demos Deploy Nginx Pod/Service
08:24 Hands-on Demos - Create Sample HPA
11:30 Hands-on Demos - Create HPA with Behavior
13:32 Summary
------------------------------------------------------------------------------------
👋-----------------------------------------------------------------------------------
Easy Connect:
🏢 https://bit.ly/3tN3DeI
🐦 https://bit.ly/3LF2q1Z
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: