Relative Content

Tag Archive for kubernetesnginx

Kubernetes cache slow REST API calls from pods

Our goal is to cache slow REST API call from kubernetes PODs to legacy CORE system. Idea is to use NGINX cache between PODs and CORE system.
Is this possible/good idea? If yes, how can we achieve this? If no what is better solution?

Reload nginx config in docker

I’m trying to use nginx as a reverse proxy in a Kubernetes setup. We are required to verify client certificates against CRL-files, and a sidecar container is responsible for updating the CRL’s. My idea was to use “nginx -s reload” to update the configuration in the nginx-container, but for some reason the container starts a completely new master-process and since the listen-ports aren’t available it shuts down after a few seconds.
It looks like the reload is behaving correctly at first, the logs describes a graceful shutdown and starting new workers and suddenly the container is stopped.
I’ve tried the debugging version with no luck, I can’t find any root cause to the behavior.

ingress-nginx-controller didn’t update stream ip when pod ip changed

Up until now, updating the image of a pod didn’t break anything. This last time however, the pod itself got a new ip in the cluster and my service became unreachable (502 Bad Gateway). I debugged every step of the request to find the problem, from browser to container. On the logs of the ingress-nginx-controller pod, I found this suspicious line: