Search code examples
kuberneteskubernetes-cronjobgrpcurl

grpcurl call from Kubernetes cronjob


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?


Solution

  • 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.