Horizontal auto-scaling is not working properly

Horizontal auto-scaling is not working properly, HPA is not showing the current CPU uages.
this below error unknow is showing,
root@server:~# kubectl describe hpa joomla-scaler -n demo-joomla

Cluster information:

Kubernetes version: 1.14.2
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: Ubuntu 16.04.4
CNI and version:
CRI and version:

Have you checked the metrics server is properly installed and getting the metrics? How exactly are you checking that?

Hi,
Thanks for reply, I have fixed the issue,
just I reset the kubeadm and then
I have added the below command on metrics-server-deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: metrics-server
namespace: kube-system
labels:
k8s-app: metrics-server
spec:
selector:
matchLabels:
k8s-app: metrics-server
template:
metadata:
name: metrics-server
labels:
k8s-app: metrics-server
spec:
serviceAccountName: metrics-server
volumes:
- name: tmp-dir
emptyDir: {}
containers:
- name: metrics-server
image: k8s.gcr.io/metrics-server-amd64:v0.3.3
command:
- “/metrics-server”
- “–kubelet-insecure-tls=true”
- “–kubelet-preferred-address-types=InternalIP”
imagePullPolicy: Always
volumeMounts:
- name: tmp-dir
mountPath: “/tmp”

Great it works! :slight_smile: