stefanprodan / k8s-prom-hpa

Kubernetes Horizontal Pod Autoscaler with Prometheus custom metrics
MIT License
565 stars 192 forks source link

Makefile:14: recipe for target 'gencerts' failed #31

Open k8s19 opened 5 years ago

k8s19 commented 5 years ago

Below error reported when doing custom metric:

~/go/k8s-prom-hpa$ sudo make certs Generating TLS certs Using default tag: latest latest: Pulling from cfssl/cfssl Digest: sha256:525005bc4e39d61a2302490329e414eab13ee7ec3edf261df5da68ff65cb506b Status: Image is up to date for cfssl/cfssl:latest Can't load /home/ubuntu/.rnd into RNG 139813639434688:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/ubuntu/.rnd Generating a RSA private key .................+++++ ........................................................................................................+++++ writing new private key to 'metrics-ca.key'

Failed to load config file: {"code":5200,"message":"could not read configuration file"}Failed to parse input: unexpected end of JSON input Makefile:14: recipe for target 'gencerts' failed make: *** [gencerts] Error 1

dimanzt commented 3 years ago

I have the same issue? Is there a solution to this? I am using CentOS

dimanzt commented 3 years ago

make certs Generating TLS certs Using default tag: latest latest: Pulling from cfssl/cfssl Digest: sha256:c21e852f3904e2ba77960e9cba23c69d9231467795a8a160ce1d848e621381ea Status: Image is up to date for cfssl/cfssl:latest docker.io/cfssl/cfssl:latest Generating a 2048 bit RSA private key ..........................+++ .............+++ writing new private key to 'metrics-ca.key'

Failed to load config file: {"code":5200,"message":"could not read configuration file"}Failed to parse input: unexpected end of JSON input make: *** [gencerts] Error 1

PavanMakadia commented 3 years ago

Is there any update about this? I am facing the same issue with Linux here.

PavanMakadia commented 3 years ago

Never mind ! I solved issue by using old version (1.3.2) of docker image cfssl/cfssl in Makefile.

deadjoker commented 3 years ago

using old version doesn't solve my issue on CentOS