Recently I was debugging some issues with a Websocket server. The server was running serverless via knative eventing in Kubernetes, with Istio as the gateway and some virtual service rules. The connection was failing with a 503 status and no real information. The server itself provided no information about its connections or incoming messages, so …
While working on my latest project in Rust with Diesel I ran into an issue when sharing a Postgres instance between two applications. The second application (in my case, Ory Kratos) was unable to establish connections to the database, telling me that there were no available connections. At first I thought maybe my Postgres database …
This is really simple. Use the kubectl run command to run a container quickly: In my case I wanted to install some tools (which since it’s an ubuntu image you can!) Or if you just need curl (and some other network diagnostic tools):
Getting an NGINX ingress running on a cluster is really easy, but the documentation did not immediately tell me how to strip the path prefix off at the ingress. I know I can use something like Istio to do this for me but for this specific project I didn’t need all of the additional complexity …
Sometimes I just need to get a single value out of the database, or in this case I wanted to include connectivity to the database in my liveness probe. Since I don’t need to load anything and just want to make sure the database is accessible I want to run a very simple query. Diesel …