2

I have a grpc service running in Kubernetes. I need a Kubernetes cronjob to invoke this service using grpcurl command. My Kubernetes cronjob yaml file looks as mentioned bellow.

When I run this cronjob in kubernetes, I receive "/bin/sh: grpcurl: not found" error. How should I Install/get access to grpcurl for my kubernetes cronjob?

N-K
  • 23
  • 5
  • Use an image that has gpcurl installed in it , busybox doesn't have it. – Tarun Khosla Jul 30 '20 at 16:21
  • do you mean, I will have to create a new image with preinstalled grpcurl? Sorry for the noob level question. I am new to all this. – N-K Jul 30 '20 at 16:57
  • Yes , i tried building one but i couldnot find how to install grpccurl , if you point me to steps i can try else go with some other image that you think will have it. – Tarun Khosla Jul 30 '20 at 17:01
  • this documentation points to installation step. https://github.com/fullstorydev/grpcurl – N-K Jul 31 '20 at 08:30

1 Answers1

3

Install grpcurl in busybox or better Make a dockerfile with grpccurl. You can also use an image with grpccurl already installed

I have made a sample image tarrunkhosla/grpcio:v1

Try using this in your YAML.

Tarun Khosla
  • 1,274
  • 7
  • 10