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.

How do I deploy Che to docker-desktop's Kubernetes?

See original GitHub issue

Describe the bug

I’ve been trying to figure out how to install che on my docker-desktop’s Kubernetes instance, on my Mac.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

I found https://www.eclipse.org/che/docs/che-7/installation-guide/installing-che-on-docker-desktop/ that links to https://che.eclipse.org/running-eclipse-che-on-kubernetes-using-docker-desktop-for-mac-5d972ed511e1 which leads to the homepage, so no instructions.

I tried to wing it, after installing chectl:

❯ chectl server:start
› Current Kubernetes context: 'docker-desktop'
  ✔ Verify Kubernetes API...OK
  ✔ 👀  Looking for an already existing Eclipse Che instance
    ✔ Verify if Eclipse Che is deployed into namespace "eclipse-che"...it is not
 ›   Warning: Eclipse Che has not been deployed yet. Use server:deploy command to deploy a new Eclipse Che instance.
❯ chectl server:deploy
› Current Kubernetes context: 'docker-desktop'
› Installer type is set to: 'operator'
Enable CLI usage data to be sent to Red Hat online services. [y/n]: y
  ✔ Verify Kubernetes API...OK
  ✔ 👀  Looking for an already existing Eclipse Che instance
    ✔ Verify if Eclipse Che is deployed into namespace "eclipse-che"...it is not
  ✖ ✈️  Platform preflight checklist
    → Platform is required ¯\_(ツ)_/¯
 ›   Error: Error: Platform is required ¯\_(ツ)_/¯
 ›   Command server:deploy failed. Error log: /Users/fbricon/Library/Caches/chectl/error.log Eclipse Che logs: /var/folders/lj/syy7z_ln77gbg1184g62krm40000gn/T/chectl-logs/1611825651685

Platform is required ¯\_(ツ)_/¯ was very helpful. not. Nothing in the chectl help provides any instructions related to platform

Eventually @sunix gave me the proper blog post URL with updated (Jan. 2020) instructions (https://medium.com/eclipse-che-blog/running-eclipse-che-on-kubernetes-using-docker-desktop-for-mac-5d972ed511e1).

Then it kept failing:

❯ chectl server:start --platform=docker-desktop --installer=helm
› Current Kubernetes context: 'docker-desktop'
 ›   Error: Unexpected arguments: --platform=docker-desktop, --installer=helm
 ›   See more help with --help

Expected behavior

  • Instructions to run Che on local docker desktop should be easily accessible (no dead link)
  • Error message should be more helpful than Platform is required ¯\_(ツ)_/¯.
  • instructions should be updated (again)

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
❯ docker version
Client: Docker Engine - Community
 Cloud integration: 1.0.7
 Version:           20.10.2
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        2291f61
 Built:             Mon Dec 28 16:12:42 2020
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.2
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       8891c58
  Built:            Mon Dec 28 16:15:28 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"299b6af", GitTreeState:"clean", BuildDate:"2020-11-26T04:01:17Z", GoVersion:"go1.15.0", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:41:49Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}

Installation method

  • [ x] chectl

Environment

  • [x ] my computer
    • Windows
    • Linux
    • macOS

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
fbriconcommented, Jan 28, 2021

@flacatus ok my bad, I should use my glasses sometimes. chectl server:deploy --platform=docker-desktop --installer=helm instead of server:start worked, after I installed helm

Command server:deploy has completed successfully in 02:53.

0reactions
fbriconcommented, Jan 28, 2021

link works

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running Eclipse Che on Kubernetes using Docker Desktop ...
Then we go in che/deploy/kubernetes/helm/che folder. $ cd che/deploy/kubernetes/helm/che. Then we need a tiller (https://docs.helm.sh/ ...
Read more >
Deploy on Kubernetes - Docker Documentation
Next to Enable Kubernetes, select the checkbox. Select Apply & Restart to save the settings and then click Install to confirm. This instantiates...
Read more >
Deployments - Kubernetes
A Deployment provides declarative updates for Pods and ReplicaSets. You describe a desired state in a Deployment, and the Deployment Controller changes the ......
Read more >
Tweaking Docker Desktop's Kubernetes on Win/Mac | by Chris
Docker Desktop makes it easy to run a single-node Kubernetes cluster on ... .com/kubernetes/dashboard/v2.0.0-rc6/aio/deploy/recommended.yaml.
Read more >
Installing Che on Minikube - Eclipse
This article explains how to create a single-node Kubernetes cluster with Minikube to deploy Che. Remember that single-node Kubernetes clusters are suited only ......
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