Skip to content

Conversation

star3am
Copy link

@star3am star3am commented Oct 2, 2025

Feature: adding a Dev Container to Minikube, enabling us to launch Minikube in a Github Codespace or in a Dev Container locally

  • Enables us to quickly get Minikube running in a Github Codespace
  • Enables us to quickly get Minikube running locally using Dev Containers

Once the Codespace or Dev Container is launched
image

We can run inside the VSCode terminal minikube start - Let's open a new Terminal tab
image

Now let's run minikube start
image

Now we should have minikube up and running and we can run minikube and kubectl commads
image

We can even bring up the Minikube Kubernetes Dashboard by running minikube dashboard --url
image

And by going to the Ports tab and right click and opening in new browser
image

And opening the Minikube Kubernetes Dashboard location on our Github Codespace
image

This is to my knowledge the fastest way to launch Minikube on the internet for Development / Demo purposes

…nikube in a Github Codespace or in a Dev Container locally

- adding devcontainer.json file and a section in the README
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 2, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: star3am
Once this PR has been reviewed and has the lgtm label, please assign spowelljr for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 2, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @star3am. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 2, 2025
@star3am star3am changed the title Feature: adding a Dev Container to Minikube, enabling us to launch Mi… Feature: adding a Dev Container to Minikube Oct 2, 2025
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 9, 2025
"enableNonRootDocker": "true",
"moby": "true"
},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @star3am for this PR I am curious where is this image coming from and who builds it ? need a comment to know the origins of it

Copy link
Author

@star3am star3am Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good day @medyagh that image is from the Devcontainer organisation on Github

Specifically the image comes from mcr.microsoft.com/devcontainers/base:debian (latest)
https://github.com/devcontainers/images/tree/main/src/base-debian

The below page contains information on how Minikube is installed using the feature.
https://github.com/devcontainers/features/pkgs/container/features%2Fkubectl-helm-minikube

image

More information can be found here https://github.com/devcontainers/features/tree/main/src/kubectl-helm-minikube

The Dev Containers used to be a project by Microsoft, but has been migrated to https://github.com/devcontainers
image

Can you clarify whether you also wanted a comment in the devcontainer.json file referencing these URLs or just this comment?

Thank you for taking the time to look at my PR and thank you for a great project!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this org owned by microsoft or github ?
and how often the image gets updated? I would prefer an image that minikube project can control and can update

Copy link
Author

@star3am star3am Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @medyagh Thank you for your time! As far as I understand, Miscrosoft used to own it and now it's an Org on it's own. See this announcement microsoft/vscode-dev-containers#1762

Seems to be regular releases such as monthly see here: https://github.com/devcontainers/images/releases

If I understand correctly, do you want a Dockerfile with Image source as Docker in Docker such as FROM docker:dind and then the minikube install to happen in the Dockerfile? Is that whaat you are looking for?

@star3am star3am requested a review from medyagh October 13, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants