Ingress question and initial install UI issue #5642
Replies: 7 comments 4 replies
-
There's 2 types of ingress. And here we come into your questions A1: Yes, jans deploys ingress(resources) defined here A2: LB stands in front of the k8s services.. that's what we'll always call to reach the jans k8s services > jans k8s pods fqdn if registered, it will get mapped to lbip inside the pods as described here .... Mimic Double check the deployed helm installation using for example |
Beta Was this translation helpful? Give feedback.
-
But, and perhaps a dumb question, but why does the product use the lb address or fdqn at all? Shouldn’t it be using the internal clusterIP off the internal services and associated internal dns?
|
Beta Was this translation helpful? Give feedback.
-
Ok, that makes sense (if that’s all that the external entry point is used for, otherwise that’s an unnecessary point of attack).
Still bothered by the fact that the lbIP is required if the fqdn is registered (you can get IP through the hostname lookup), but ok.
Give me your thoughts though, because it’s still a chicken and egg issue for me……in on on-prem environment, the fqdn would not be registered first since the ingress establishes the lbIP (through metallb in my case). And since Jans is creating the ingress, I won’t know the lbIP till after it does that.
So what to do? I could create an ingress first, deploying some little sample app to make that occur, and therefore have the lbip and register the fqdn as the next step, then install jans…seems like a lot of run around.
Any other thoughts?
|
Beta Was this translation helpful? Give feedback.
-
Back to trying to get nginx to work first. After install, the nginx ingress isn't responding correctly.
Have I missed a step to create certs or something? |
Beta Was this translation helpful? Give feedback.
-
Oops, thanks for catching that, will correct and report back
|
Beta Was this translation helpful? Give feedback.
-
Running 1.0.17-dev and scim likewise. |
Beta Was this translation helpful? Give feedback.
-
1.0.16-1 seems to work better, all four health checks are workikng |
Beta Was this translation helpful? Give feedback.
-
I have an new on-prem (kubeadm, couchbase) 1015-1 install running, but it doesn't seem like the nginx instance is hooked up to the auth-server or any of the other endpoints.
When I try to hit the documented endpoints:
and my ingress is exposed on a given ip, which i have dns set up on that ip as well....
When I hit that endpoint using the fdqn, I get a 404
curl -k https:///.well-known/openid-configuration
I would think that this endpoint is coming from the auth-server service, which in my case is a ClusterIP running on 10.108.170.78:8080
so shouldn't this work against that IP?
curl http://10.108.170.78:8080/.well-known/openid-configuration
but I get a 404 there too.
Nginx log shows that it's missing an active endpoint:
W0724 18:05:14.123896 7 controller.go:1207] Service "jans/auth-server" does not have any active Endpoint. │ W0724 18:05:14.123998 7 controller.go:1207] Service "jans/config-api" does not have any active Endpoint. │
Nginx was running prior to the jans install.
I see messages earlier in the log atoub updating the Ingress status for the endpoints, and pointing to the right IP'
I0724 18:03:43.444129 7 status.go:300] "updating Ingress status" namespace="jans" ingress="janssen-nginx-ingress-openid-config" curren │ │ tValue=null newValue=[{"ip":"172.16.1.7"}] │ │ I0724 18:03:43.444128 7 status.go:300] "updating Ingress status" namespace="jans" ingress="janssen-nginx-ingress-device-code" currentV │ │ alue=null newValue=[{"ip":"172.16.1.7"}] │ │ I0724 18:03:43.444207 7 status.go:300] "updating Ingress status" namespace="jans" ingress="janssen-nginx-ingress-webfinger" currentVal │ │ ue=null newValue=[{"ip":"172.16.1.7"}] │ │ I0724 18:03:43.444435 7 status.go:300] "updating Ingress status" namespace="jans" ingress="janssen-nginx-ingress-uma2-config" currentV │ │ alue=null newValue=[{"ip":"172.16.1.7"}] │ │ I0724 18:03:43.444670 7 status.go:300] "updating Ingress status" namespace="jans" ingress="janssen-nginx-ingress-webdiscovery" current │ │ Value=null newValue=[{"ip":"172.16.1.7"}] │ │ I0724 18:03:43.445660 7 status.go:300] "updating Ingress status" namespace="jans" ingress="janssen-nginx-ingress-u2f-config" currentVa │ │ lue=null newValue=[{"ip":"172.16.1.7"}] │
I have the lbIP and fqdn defined in helm, though I have questions on that (below).
Anybody got a clue?
====and further on the ingress
It's a bit confusing, having to specify the lbIP whether the fqdn is registered or not....as per the docs (https://docs.jans.io/head/admin/install/helm-install/google-gke/#jans-installation-using-helm).
And stranger, am used to the product creating the ingress itself, and that ingress being advertised through the ingress.
Q: Does the install create the ingress? If not, why not?
Q: Why, if the fqdn is dns registered, do you have to specify a lbIP?
Does the product install use the fqdn? Why is the ingress not just created, and leave the dns part to the user install process?
Am not sure how to proceed, guess I can create an ingress with a sample app first then assign the lbIP and update dns as I have been doing...
Beta Was this translation helpful? Give feedback.
All reactions