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.

`error while installing eclipse-che on k8s` - message: 0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims

See original GitHub issue

Summary

i’m using below command to install eclipse-che on k8s cluster

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

OS ubuntu 18.04 64 bit

chectl version image

che-operator-cr-patch.yaml

apiVersion: org.eclipse.che/v2
kind: CheCluster
metadata:
  name: eclipse-che
spec:
  database:
    chePostgresHostName: hostname.com
    chePostgresPassword: rdfot123
    chePostgresUser: vma123dfaf
    externalDb: true
  auth:
    identityProviderURL: https://dex.tree.click:32000
    oAuthClientName: eclipse-che
    oAuthSecret: mysecret

i received below error image

the above error is due to issue in postgres-7f58d6c56b-24cf7 pod in eclipse-che namespace image

below is the status of postgres-7f58d6c56b-24cf7 pod image

As i have added external postgress host details in che-operator-cr-patch.yaml , why am i facing this error related to persistent volume on postgres?

please help me to fix this error

Relevant information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tolushacommented, Jun 14, 2022

@Divine1

CheCluster API v2 has a different structure. Pls find more here https://github.com/eclipse-che/che-operator/blob/0bc10490177c5d90867459e52ee7e1686cb97ff2/api/v2/checluster_types.go

For your case:

apiVersion: org.eclipse.che/v2
kind: CheCluster
metadata:
  name: eclipse-che
spec:
  components:
    database:
      externalDb: true
      postgresHostName: hostname.com
      postgresPort: 3128
  networking:
    auth:
      identityProviderURL: https://dex.tree.click:32000
      oAuthClientName: eclipse-che
      oAuthSecret: mysecret

To store PostgreSQL credentials, create a secret postgres-credentials in eclipse-che namespace:

apiVersion: v1
kind: Secret
  name: postgres-credentials
  namespace: eclipse-che
metadata:
  labels:
    app.kubernetes.io/part-of: che.eclipse.org
type: Opaque
data:
  password: <BASE64_CONTENT>
  user: <BASE64_CONTENT>
0reactions
Divine1commented, Jun 14, 2022

@tolusha The issue which i reported above is fixed.

iam facing another issue. i have created a new Issue and described the issue details in it.

Please help me on that https://github.com/eclipse/che/issues/21464

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing Pod Has Unbound Immediate PersistentVolumeClaims ...
To talk about the volume node affinity conflict error, first let us take an example to understand this Kubernetes cluster setup: You have...
Read more >
pod has unbound immediate PersistentVolumeClaims
The persistentvolume-controller has failed to find a PV with a capacity size which is equal or higher then the value that was specified...
Read more >
Collecting logs using chectl :: Eclipse Che Documentation
An installation of Eclipse Che consists of several containers running in the Kubernetes cluster. While it is possible to manually collect logs from...
Read more >
RHBA-2020:4196 - Bug Fix Advisory - Red Hat 客户门户网站
描述. Red Hat OpenShift Container Platform is Red Hat's cloud computing. Kubernetes application platform solution designed for on-premise or ...
Read more >
Fixing – pod has unbound immediate persistentvolumeclaims ...
Fixing – pod has unbound immediate persistentvolumeclaims or cannot bind to requested volume incompatible accessmode · There could be multiple ...
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