-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup kuberenetes dashboard #1558
Comments
Hi @weihan1394 The proxy protocol is only needed if you front Ingress Controller pods with a load balancer like ELB, which uses proxy protocol to pass the client IP to NGINX: Is that the case? |
Hello there! So, what's the true way to reach Clients IPs @pleshakov ? #1561 |
Hi @pleshakov, I am currently using this way: clients -> NGINX IC -> backends. Apparently, this configuration works for all my application but currently I am trying to setup the kubernetes dashboard with their default yaml |
@weihan1394 |
Hi @pleshakov Thanks for your kind help in advance. I have removed those proxy protocols. I am trying to access the dashboard from google chrome. When I access the dashboard again with k8.moonshot.com it directed me to error 400 page. virtual server for dashboard.yaml
dashboard service yaml
Logs:
-- edited
|
the Could you update the VS to do that?
|
@pleshakov oh wow! kudos, it works now. May I check if I understand my setup of the virtual server correctly? I have deployed my NGINX in the default namespace, but I have also created 2 applications in 2 different namespaces. Let call it dev and prod. Am I right to say that I can just simply create the virtual server on the respective namespace? I will just need to create all the resources required in their own namespace. dev:
prod:
However when I try to access the app from another namespace is it correct that I will just need to put the route as [namespace]/[name]
|
that is correct
in this case, dev/hellok8s-2 needs to be a VirtualServerRoute, not VirtualServer. We have an example -- https://github.com/nginxinc/kubernetes-ingress/tree/master/examples-of-custom-resources/cross-namespace-configuration |
@pleshakov Thanks for your help, it helps a lot! |
I am trying to set up Kubernetes with bare machine and I have deployed my Nginx in the default namespace and I am trying to create a virtual server to route the dashboard. However, when I try to access the URL, it directed me to error 404 and when I view the logs from the pod it seems to be having a broken header. I came across kubernetes/ingress-nginx#3996 and they were giving suggestion to add the proxy protocol and if I were to add the below snippet to my config map, the other routes will fail.
nginx-ingress-configmap
Any hints what I have done wrongly? Thanks in advance.
The text was updated successfully, but these errors were encountered: