Skip to content
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

Show the container runtime when running without kubernetes #13432

Closed
afbjorklund opened this issue Jan 22, 2022 · 14 comments · Fixed by #14200
Closed

Show the container runtime when running without kubernetes #13432

afbjorklund opened this issue Jan 22, 2022 · 14 comments · Fixed by #14200
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@afbjorklund
Copy link
Collaborator

afbjorklund commented Jan 22, 2022

Currently we hide the container runtime output.

But there should be plenty of room to show it ?

No Kubernetes

😄  minikube v1.25.1 on Ubuntu 20.04
✨  Automatically selected the kvm2 driver. Other choices: virtualbox, ssh
👍  Starting minikube without Kubernetes minikube in cluster minikube
🔥  Creating kvm2 VM (CPUs=2, Memory=3900MB, Disk=20000MB) ...
🏄  Done! minikube is ready without Kubernetes!
╭───────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                       │
│                       💡  Things to try without Kubernetes ...                        │
│                                                                                       │
│    - "minikube ssh" to SSH into minikube's node.                                      │
│    - "minikube docker-env" to point your docker-cli to the docker inside minikube.    │
│    - "minikube image" to build images without docker.                                 │
│                                                                                       │
╰───────────────────────────────────────────────────────────────────────────────────────╯

With Kubernetes

😄  minikube v1.25.1 on Ubuntu 20.04
✨  Automatically selected the kvm2 driver. Other choices: virtualbox, ssh
👍  Starting control plane node minikube in cluster minikube
🔥  Creating kvm2 VM (CPUs=2, Memory=3900MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.23.1 on Docker 20.10.12 ...
    ▪ kubelet.housekeeping-interval=5m
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: default-storageclass, storage-provisioner
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

This sentence is somewhat weird: "Starting minikube without Kubernetes minikube"

Probably better off as "Starting virtual machine minikube" (or "container", for KIC) ?

EDIT: It did say "VM" on the line below, so maybe something else rhyming with node.

👍  Starting node minikube in cluster minikube
🔥  Creating kvm2 VM (CPUs=2, Memory=3900MB, Disk=20000MB) ...

And this one doesn't contain much info: "Done! minikube is ready without Kubernetes!"

Slightly more useful as "Done! minikube is ready with Docker 20.10.12" instead

EDIT: Possibly on a separate line, to show the fancy runtime emoji (like that whale)

🐳  Preparing Docker 20.10.12 ...
🏄  Done! minikube is ready without Kubernetes!
@afbjorklund afbjorklund added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 22, 2022
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Jan 22, 2022

Eventually this should tie into provisioning, and output the result of it:

It can either go very quickly, like when the container runtime is pre-installed

Or it can take a while, like when having to download and install packages for it.

@afbjorklund

This comment has been minimized.

@MdSahil-oss
Copy link

@afbjorklund Do you think this is good first issue to contribute, if so, can you suggest me the path of changing files as I'm beginner and want to contribute too.

@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Jan 24, 2022

@afbjorklund Do you think this is good first issue to contribute, if so, can you suggest me the path of changing files as I'm beginner and want to contribute too.

Sure, just need to argue a bit about what it should look like. The code is in "node":

https://github.com/kubernetes/minikube/blob/master/pkg/minikube/node/start.go

And some of it (for "kubectl") is hacked straight into the start command itself:

https://github.com/kubernetes/minikube/blob/master/cmd/minikube/cmd/start.go

@afbjorklund afbjorklund added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. triage/discuss Items for discussion labels Jan 24, 2022
@MdSahil-oss
Copy link

/assign

@MdSahil-oss
Copy link

@afbjorklund, if we rename "Starting minikube without Kubernetes minikube" to "Starting node minikube in cluster minikube" , it's good but if we change 🏄 emoji with something else like that 🐳, it will change the minikube status meaning that is already specified by minikube (you can check emojis meaning https://github.com/kubernetes/minikube/blob/master/pkg/minikube/style/style.go).

@MdSahil-oss
Copy link

and don't you think ?, Showing container runtime output will be a little bit confusing for beginners.

@afbjorklund
Copy link
Collaborator Author

Showing container runtime output will be a little bit confusing for beginners.

It was supposed to look something like this:

😄  minikube v1.25.1 on Ubuntu 20.04
✨  Automatically selected the kvm2 driver. Other choices: virtualbox, ssh
👍  Starting node minikube in cluster minikube
🔥  Creating kvm2 VM (CPUs=2, Memory=3900MB, Disk=20000MB) ...
🐳  Preparing Docker 20.10.12 ...
🏄  Done! minikube is ready without Kubernetes!

Should hopefully be less confusing, not more ?

@MdSahil-oss
Copy link

MdSahil-oss commented Jan 25, 2022

@afbjorklund, if we rename "Starting minikube without Kubernetes minikube" to "Starting node minikube in cluster minikube" , it's good but if we change surfer emoji with something else like that whale, it will change the minikube status meaning that is already specified by minikube (you can check emojis meaning https://github.com/kubernetes/minikube/blob/master/pkg/minikube/style/style.go).

@afbjorklund What about this ?

@spowelljr spowelljr added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Jan 27, 2022
@klaases
Copy link
Contributor

klaases commented Mar 16, 2022

Hi @MdSahil-oss, please see @spowelljr's comments on PR #13513 before we can merge.

@klaases
Copy link
Contributor

klaases commented Apr 20, 2022

Hi @MdSahil-oss, just wanted to check if you are still actively working on this issue?

@klaases
Copy link
Contributor

klaases commented May 4, 2022

Un-assigning @MdSahil-oss, please feel free to re-assign if still actively working on this issue.

@Gimb0
Copy link
Contributor

Gimb0 commented May 17, 2022

/assign

@klaases
Copy link
Contributor

klaases commented May 25, 2022

Hi @afbjorklund, would you mind taking a look at Gimb0's PR to see if this helps display the container runtime data that you were looking for?

spowelljr added a commit that referenced this issue Jul 1, 2022
 Show the container runtime when running without kubernetes #13432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
6 participants