grpcurl call from Kubernetes cronjob

7/30/2020

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
grpcurl
kubernetes
kubernetes-cronjob

1 Answer

7/30/2020

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
Source: StackOverflow