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.

Impossible to use nodeSelector for Theia

See original GitHub issue

Hello we are trying to to use node selector.

We use che7.18.0 deployed with chectl on kubernetes 1.15

Following the documentation to add a nodeSelector https://www.eclipse.org/che/docs/che-7/installation-guide/configuring-workspaces-nodeselector/.

We have noticed that for the theia editor, the nodeSelector are not working. 
metadata:
  name: theia-nodeSelector
components:
  - referenceContent: |
      kind: List
      items:
        - apiVersion: v1
          kind: Pod
          metadata:
            name: ws
            labels:
              name: ws
          spec:
           containers:
            - name: maap-theia
              image: 'kosted/bmap-stack:0.2'
              imagePullPolicy: Always
              mountSources: true
              resources:
                limits:
                  memory: 2048Mi
              securityContext:
                privileged: true
    type: kubernetes
    volumes:
      - name: projects
        containerPath: /projects
    alias: maap-theia
    env:
      - value: 97262
        name: CLIENT_ID
      - value: VAL
        name: env
  - id: eclipse/che-theia/7.18.0
    type: cheEditor
    alias: theia-editor
  - id: eclipse/che-machine-exec-plugin/7.18.0
    type: chePlugin
    alias: exec-plugin
apiVersion: 1.0.0

For the follwing devFile, we use for jupyterlab we created it is working:

metadata:
  name: jupyterlab-2j907
attributes:
  editorFree: 'true'
components:
  - endpoints:
      - name: jupyter
        port: 3100
        attributes:
          type: ide
          discoverable: 'false'
          path: /
          protocol: http
          public: 'true'
    referenceContent: |
      kind: List
      items:
        - apiVersion: v1
          kind: Pod
          metadata:
            name: ws
            labels:
              name: ws
          spec:
           containers:
            - name: jupyter
              image: 'kosted/maap-esa-jupyterlab:0.0.6'
              imagePullPolicy: IfNotPresent
              mountSources: true
              resources:
                limits:
                  memory: 2048Mi
              securityContext:
                privileged: true
    type: kubernetes
    volumes:
      - name: projects
        containerPath: /projects
    alias: maap-jupyterlab
    env:
      - value: WS_JUPYTER
        name: MACHINE_NAME
      - value: /projects
        name: JUPYTER_NOTEBOOK_DIR
      - value: id
        name: CLIENT_ID
      - value: cid
        name: env
apiVersion: 1.0.0

Do you have a solution to enable the nodeSelector when using the theia editor please ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
KOSSOKOcommented, Apr 16, 2021

@sparkoo we have to install a new cluster for the test. I will give you the result once done.

1reaction
sparkoocommented, Apr 23, 2021

@KOSSOKO I have not met this issue. CHE_INFRA_KUBERNETES_WORKSPACE__START__TIMEOUT__MIN might be what you’re looking for. See https://www.eclipse.org/che/docs/che-7/installation-guide/advanced-configuration-options-for-the-che-server-component/#LChe-server

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assigning Pods to Nodes - Kubernetes
You can constrain a Pod so that it is restricted to run on particular node(s), or to prefer to run on particular nodes....
Read more >
Why are pods failing to schedule due to resources when node ...
According to kubernetes documentation: How Pods with resource requests are scheduled. When you create a Pod, the Kubernetes scheduler ...
Read more >
MongoDB unable to set nodeSelector to linux, always ... - GitHub
I don't have an hybrid cluster to test, but the chart has a nodeSelector parameter that should let you specify in which nodes...
Read more >
Chapter 5. Frequently asked questions Red Hat OpenShift ...
Is it possible to use non-default certificates with OpenShift Dev Spaces? Yes, you can use self-signed or public certificates. See Importing untrusted TLS ......
Read more >
Placing pods on specific nodes using node selectors
A node selector specifies a map of key/value pairs that are defined using custom labels on nodes and selectors specified in pods. For...
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