kubernetes HPA (Horizontal Pod Autoscaler)

preview_player
Показать описание
You can find sample yaml files at this repository:

For metrics-server, you can clone this repo:

You can see pod metrics using this command:
kubectl top pod

If you have some issue then you can add the following command attributes in your “metrics-server-deployment file” under “containers” section.
command:
- /metrics-server
- --metric-resolution=30s
- --kubelet-insecure-tls=true

So, your deployment file will look like this:
containers:
- name: metrics-server
command:
- /metrics-server
- --metric-resolution=30s
- --kubelet-insecure-tls=true
imagePullPolicy: IfNotPresent

If your are using minikube, then you can use following commands:
$ minikube start
$ minikube status

Enable addon
$ minikube addons enable metrics-server
$ minikube addons list

$ kubectl get pods -n kube-system

$ kubectl get all
$ watch -n1 !!

Load test
$ minikube service php-apache --url

$ while true; do curl minikube_service_url; done
Рекомендации по теме
Комментарии
Автор

Learn in easy way...keep it up with new concept

ishasharma