This message was deleted.
# ask-for-help
s
This message was deleted.
c
This causes the runner to fail to pull the image and deployment is stuck in infinite loop.
b
have you installed the metrics server?
c
From my understanding I believe I have. I ran the command with minikube.
minikube addons enable metrics-server
I have also ran the following:
kubectl apply -f <https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml>
kubectl get deployment metrics-server -n kube-system
Verified the output. Restarted the Yatai server. Terminated the old deployment and created a new one. Still the same result.
x
It's a long-standing bug with metrics-server: https://github.com/kubernetes-sigs/metrics-server/issues/989
c
I am new to Kubernetes so bare with me here. If I understand the comment that resolved the issue, it appears that both the deployment and the HPA had the same name and the user needed to change one in order for the HPA to work correctly? https://github.com/kubernetes-sigs/metrics-server/issues/989#issuecomment-1088850769 If that is true, then is there now an issue that needs to be resolved in Yatai where it automatically creates an HPA with the same name as the deployment?
x
The comment of the issue you posted is because the pods generated by both workloads (deployment and statefulset) have the same labels, which causes HPA to read the metrics of all the pods they generate, but the pods generated by statefulset do not have resources set (a prerequisite for generating metrics), resulting in an error, which is different from Yatai's case
This error is reported because the newly generated pod has not yet had time to generate metrics at the time of deployment, but HPA has already started reading its metrics, so this error is reported
c
Okay, so this error is not driving the following error then?
x
The image pull error and the HPA error are two completely different kinds of errors
The two types of errors are not related in any way
c
Okay! I will look into the image pull error. Thank you so much for your help! :)