question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`oauth-proxy` container in `che-gateway` pod throws error while setting up `eclipse-che` on k8s cluster

See original GitHub issue

Summary

i have configured a k8s cluster in my virtual machine and i installed eclipse-che using below command. the installation completed, but i have explained the issue below

chectl server:deploy --che-operator-cr-patch-yaml=/home/ubuntu/kubeapps/che-operator-cr-patch.yaml --platform=k8s --installer=operator --debug --k8spoderrorrechecktimeout=480000 --domain=eclipseche.mangotree.click --k8spodreadytimeout=480000

i was able to follow this documentation and integrate dex with an example-app successfully. Now i have to integrate dex and eclipse-che.

below screenshot shows the output after successfully installing eclipse-che in k8s cluster but without integrating eclipse-che with dex.

But what steps should i follow to inregrate eclipse-che and dex?

(not real url)sample url is https://eclipseche.example.click:31931/ , https://eclipseche.example.click:31931/dashboard

image

image

i investigated the error and found che-gateway-766fdb7b54-pb8bz pod in errored state. i investigated the state of the containers with-in the pod, oauth-proxy container in che-gateway-766fdb7b54-pb8bz pod is in errored state.

image

image

i checked the oauth-proxy container logs in che-gateway-766fdb7b54-pb8bz pod , it shows below error message. where should i update the information mentioned in the error message ? Please help me on what should i do to fix this error?

image

Relevant information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
sparkoocommented, Jun 9, 2022

oAuthClientName and oAuthSecret is id and secret from Dex configuration https://github.com/dexidp/dex/blob/master/examples/config-dev.yaml#L110.

Che will always talk to Dex here. If you want to login with GitHub, you have to configure Dex to connect to it https://dexidp.io/docs/connectors/github/

It looks like this: Che --(OIDC)–> Dex ----> Identity Provider (GitHub, Gitlab, Google, …)

Kubernetes must be using same Dex for authentication and by that we’re able to use Kubernetes RBAC to control permissions for users. It will also allow us to have various Identity providers.

chectl command looks right

1reaction
tolushacommented, Jun 13, 2022

Try to clean up checluster CR manually oc patch checluster/eclipse-che --patch '{"metadata": {"finalizers": null}}' --type=merge -n eclipse-che Namespace should be deleted automatically.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install Eclipse-che in azure Kubernetes cluster
I'm trying to install the Eclipse-Che by following this blog ... Oauth-proxy container is getting failed (Crash loop back error) Logs of the ......
Read more >
1779388 – container oauth-proxy has crashlooping
Cause: the oauth-proxy container exits with an error when there is an error reaching the kube-apiserver during configuration phase Consequence: container ...
Read more >
Installing Eclipse Che on the Azure Kubernetes Service (AKS)
In this blog post, we'll tell the story how we installed Eclipse Che on Microsoft Azure, what challenges we met and how solved...
Read more >
Add Auth to Any App with OAuth2 Proxy - Okta Developer
An application without security · Set up Okta · Set up OAuth2 Proxy · REST API clients · Add Nginx to route traffic....
Read more >
Kubernetes Plugin for Eclipse Che - Medium
As a result, you can have a central Kubernetes cluster for your development teams and anyone in the team can immediately get access...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found