stefanprodan / k8s-prom-hpa

Kubernetes Horizontal Pod Autoscaler with Prometheus custom metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making certificate is throwing error.

gkarthiks opened this issue · comments

I am getting the below error when Irun the command make certs under the project folder.

Generating TLS certs
error: cannot open .git/FETCH_HEAD: Permission denied
package github.com/cloudflare/cfssl/cmd/cfssl: exit status 1
make: *** [gencerts] Error 1

looks like you have a problem with your golang installation, does go get -u github.com/cloudflare/cfssl/cmd/... work?

Actually i had to uninstall and re-install go.
Then its working as expected. Thank you for the response.
One another question,

I see we have to switch on horizontal-pod-autoscaler-use-rest-clients flag in the kube-controller-manager. But is that kube-controller-manager an addon?

kube-controller-manager is not an add-on, it's a core component, see https://kubernetes.io/docs/reference/generated/kube-controller-manager/