Connecting to WebSockets on Kubernetes PODs

Sp98
Hello,

I'm using the golang client to connect with the Kite Trade Websocket to get the tick data.

It works well when I'm running it on my machine. But I wanted to move it to the Kubernetes cluster and run this code as a container (inside a POD). But I'm stuck with this error

"Error in Kite Trade API: x509: certificate signed by unknown authority"

Has anyone faced similar behavior or know how to resolve it ?


  • mr_karan
    Looks like your container image doesn't have support for establishing an SSL connection. You need to install ca-certificates in your container image.

    If you are using Alpine, you can do something like this in your Dockerfile:
    RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
Sign In or Register to comment.