Check The Nginx Configuration

[Solved] Check The Nginx Configuration | Shell - Code Explorer | yomemimo.com
Question : Check the Nginx Configuration

Answered by : repulsive-rabbit-0sxhhi9jwndt

$ kubectl get pods -n <namespace-of-ingress-controller>
NAME READY STATUS RESTARTS AGE
ingress-nginx-controller-67956bf89d-fv58j 1/1 Running 0 1m
$ kubectl exec -it -n <namespace-of-ingress-controller> ingress-nginx-controller-67956bf89d-fv58j -- cat /etc/nginx/nginx.conf
daemon off;
worker_processes 2;
pid /run/nginx.pid;
worker_rlimit_nofile 523264;
worker_shutdown_timeout 240s;
events { multi_accept on; worker_connections 16384; use epoll;
}
http {
....

Source : https://kubernetes.github.io/ingress-nginx/troubleshooting/ | Last Update : Tue, 05 Apr 22

Answers related to check the nginx configuration

Code Explorer Popular Question For Shell