-
Notifications
You must be signed in to change notification settings - Fork 1.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
MicroK8S OIDC Issue #21378
Comments
Hello @elielam
yes, pls use flag
To make Eclipse Che working, you have to set the following fields in a CheCluster CR:
I have a look pls also:
/cc @sparkoo |
Added to the list of OIDC related issues |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
For Microk8s
Then I edited the API Server Configuration: Locate the configuration file for the Kubernetes API server (under /var/snap/microk8s/current/args/kube-apiserver for microk8s). Add OIDC Options: Include the following lines (adjusting for your specific Keycloak configuration):
[Update] Just needed to add here, that if you are running a cluster with multiple nodes in microks you will need to apply the same --odic args to every node in your cluster, and manually restart each node for the oidc to apply correctly.
|
Thank you for your work. |
Describe the bug
Microk8s OIDC not recognized.
Che version
7.47@latest
Steps to reproduce
Install Microk8s on debian 11.
Update kubeapi config for oidc.
Run chectl.
Expected behavior
Chectl must pass the oidc check.
Runtime
other (please specify in additional context)
Screenshots
No response
Installation method
chectl/latest
Environment
Linux
Eclipse Che Logs
Additional context
Hello,
I am currently having a problem installing eclipse che via chectl on microk8s.
The problem in question lies in the identification of the OIDC parameters of kubernetes.
I obviously (not without difficulty) took care to activate OIDC via keycloak by adding in
/var/snap/microk8s/current/args/kube-apiserver
the right arguments on my node and it works very well via kubectl.However chectl fails to pass the verification step of my OIDC configuration.
I initially disabled the check via the
--skip-oidc-provider-check
argument but that only delayed the problem, the process finished on a timeout because theoauth-proxy
container of theche-gateway
pod crashed with the following message: "... oidc-issuer-url is required".Looking closer in the code it appears that in the file we are looking in the
kube-system
namespace for a pod with the labelcomponent=kube-apiserver
.Here :
When I check in this namespace this is what I found :
The closest reference I find to what we are looking for is in the
default
namespace on thekubernetes
service but i can't find to wich pod is it related.Search pods with corresponding label :
Is my microk8s installation having a problem or am I missing something on the OIDC or chectl ?
Plateform :
Linux servername 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
Microk8s :
Microk8s v1.21.11
Kubectl :
v1.22.4
Kubernetes :
v1.21.11-3+2bdf0a81ac1652
Thank you in advance (sorry for my bad english) !
The text was updated successfully, but these errors were encountered: