kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

Nginx-Ingress Controller not workking

Open rajeevpritraj opened this issue 3 years ago • 5 comments
trafficstars

Environment OS : CentOS Linux 7 (Core) Kubernetes : v1.23.1 3 nodes (1 master, 2 workers). Following steps as per "https://docs.nginx.com/nginx-ingress-controller/installation/installation-with-manifests/"

Getting error : with option - -v=3 in deployment yaml file I0211 11:28:57.495383 1 manager.go:279] Starting nginx I0211 11:28:57.517007 1 verify.go:68] Starting poll for updated nginx config I0211 11:28:57.517435 1 verify.go:72] Unable to fetch version: error getting client: Get "http://config-version/configVersion": dial unix /var/lib/nginx/nginx-config-version.sock: connect: no such file or directory

Added below lines in Deployment file

added

    command:
     - /bin/sh
     - "-c"
     - "sleep 10m"
    imagePullPolicy: Always
  # end

Error: When checked the container, getting below error [root@master deployments]# kubectl exec -it nginx-ingress-698759c6d5-rbvj6 -n nginx-ingress -- sh $ cd etc/nginx $ cd conf.d $ ls -ls ls: cannot access 'default.conf': No such file or directory total 0 ? ?????????? ? ? ? ? ? default.conf

Any idea , what is the problem and how to fix it. Thanks.

rajeevpritraj avatar Feb 11 '22 12:02 rajeevpritraj

Hi @rajeevpritraj thanks for reporting!

Be sure to check out the docs while you wait for a human to take a look at this :slightly_smiling_face:

Cheers!

github-actions[bot] avatar Feb 11 '22 12:02 github-actions[bot]

Did you build your own image or use a pre-built image from one of the container repositories? And did you set your version after cloning the repo?

You should not have had to add any commands it should run without modification.

brianehlert avatar Feb 11 '22 15:02 brianehlert

It was pre-built image downloaded from docker hub and yaml files from git hub (cloning the repository https://github.com/nginxinc/kubernetes-ingress.git) We have made no changes except adding below lines to investigate the issue as pod was crashing immediately after deployment. command: - /bin/sh - "-c" - "sleep 10m" imagePullPolicy: Always

end

rajeevpritraj avatar Feb 12 '22 05:02 rajeevpritraj

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar May 14 '22 02:05 github-actions[bot]

Did you deploy all artifacts? There is a dependency on the CRDs, it will fail to become ready if they are not present.
As noted here: https://docs.nginx.com/nginx-ingress-controller/installation/installation-with-manifests/#create-custom-resources

brianehlert avatar May 16 '22 13:05 brianehlert

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Aug 15 '22 02:08 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Aug 25 '22 02:08 github-actions[bot]