Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

kubectl describe configmap api-server-config -n openunison returns empty certificate #55

Open
TomerG711 opened this issue Dec 3, 2019 · 7 comments

Comments

@TomerG711
Copy link

TomerG711 commented Dec 3, 2019

I've followed the provided video: https://vimeo.com/297399119, and installed OpenUnison.
However, when I run the command to get the configmap that contains the certificate for the server api, as in 2:00 in the video, I get:

Data
===
oidc-api-server-flags:
---
---oidc-issuer-url=....

(The other oidc flags are given OK).

Why don't I get the certificate?

@mlbiam
Copy link
Contributor

mlbiam commented Dec 4, 2019

We need to update the videos. When we moved to an operator based model the location of the certificate changed. In the readme (https://github.com/OpenUnison/openunison-k8s-login-activedirectory#complete-sso-integration-with-kubernetes) it says where to get the cert.

@TomerG711 TomerG711 reopened this Dec 4, 2019
@TomerG711
Copy link
Author

TomerG711 commented Dec 4, 2019

@mlbiam Great, I found the cert and edited the api server yaml as required.

Then, when I log into the OpenUnison(https://openunison.tremolo.lan), I get both of the certs - OU server CA certificate and Kubernetes API Server CA certificate, and add both to my PC (under the Microsoft Management Console for Windows 10).
Then I run the kubectl Windows Command (again, from https://openunison.tremolo.lan) and everything goes fine, but when I run kubectl get nodes (on my PC) I get the following error:
Unable to connect to the server: Get https://openunison.tremolo.lan/auth/idp/k8sIdp/.well-known-openid-configuration: x509: certificate is valid for openunison.openunison.svc.cluster.local, not openunison.tremolo.lan

Did I forget any step?

@mlbiam
Copy link
Contributor

mlbiam commented Dec 9, 2019

is openunison.tremolo.lan pointing to your ingress load balancer?

@TomerG711
Copy link
Author

@mlbiam Yes it does.

@TomerG711
Copy link
Author

@mlbiam Any idea why does it happen?

@TomerG711
Copy link
Author

@mlbiam ?

@TomerG711
Copy link
Author

@mlbiam Any idea?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants