1 Answers
Hi philiplavoie.
I’ve had a hack around with this morning and it’s not good.
HPAs use either heapster
or the metrics server
for gathering metrics. heapster
is being deprecated and replaced by metrics server
.
However, it looks like Docker Desktop doesn’t ship with either. I’ve had a go at manually configuring the metrics server, but it looks like Docker Desktop might have some TLS or RBAC quirks that stop it from working.
This is a disappointment, as the goal of Docker Desktop is to create a local dev experience that closely matches prod. But not shipping heapster
or metrics server
creates a huge discrepancy with prod. I’ve given up trying to resolve this, as a hacky solution is not a good solution for a video course like this. Also, it’s the type of thing that might change in future releases of Docker Desktop etc.
I 100% agree that this is not ideal but you can follow along on GKE and you can probably do it for free using free credits etc.
I’m gutted that I don’t have a better solution. Unfortunately this one’s out of my control.
Ah! Thank you sir. Yeah, I was able to install it, but it’s failing to connect. We’ve probably been through the same issues. 😉 Will switch to GKE for this one and keep rolling. Thanks a mil!
Hi Philip. I’m out at the moment, but will take a look at this when I’m home. Sounds like the metrics server might not be running, but I’m thinking out loud and will take a proper look later!
Can you try deploying the metrics server from this link – you might need to deploy it from the YAML files (i think there’s a link). https://kubernetes.io/docs/tasks/debug-application-cluster/core-metrics-pipeline/