Giter VIP home page Giter VIP logo

Comments (4)

nicks avatar nicks commented on June 14, 2024

haha wow this is an interesting setup
🐢
🐢
🐢

Sure, to use a different minikube profile, just use "name" in the YAML schema. Here's the YAML schema: https://pkg.go.dev/github.com/tilt-dev/ctlptl/pkg/api#Cluster

apiVersion: ctlptl.dev/v1alpha1
kind: Cluster
product: minikube
registry: ctlptl-registry
name: minikube-inner

I played around with this idea and wasn't able to get it working though. first needed to do unset MINIKUBE_ACTIVE_DOCKERD, but then i got stuck with networking issues in the VM.

from ctlptl.

kiranpatel11 avatar kiranpatel11 commented on June 14, 2024

yeah, found the name option, and tried the setup but got below error (same with minikube -p as well as ctlptl) :

➜  minikube start -p tilt --driver=docker
😄  [tilt] minikube v1.24.0 on Darwin 10.15.6
    ▪ MINIKUBE_ACTIVE_DOCKERD=minikube
✨  Using the docker driver based on user configuration

💣  Exiting due to PROVIDER_DOCKER_NOT_RUNNING: "docker version --format -" exit status 1: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
💡  Suggestion: Start the Docker service
📘  Documentation: https://minikube.sigs.k8s.io/docs/drivers/docker/

when I run docker ps commond, its able to connect to docker deamon, but with above it is not.

from ctlptl.

kiranpatel11 avatar kiranpatel11 commented on June 14, 2024

The reason I am trying out this setup on mac is I would like to avoid spining 2 VMs

  1. Docker Desktop or equivalent just to run docker deamon
  2. minikube

And offcource, with paid subscription for Docker Desktop, its not viable for our org to use it.

However, I am able to spin 2 different VMs using hyperkit driver, but that also is not resource efficient.

from ctlptl.

kiranpatel11 avatar kiranpatel11 commented on June 14, 2024

for those who are looking for similar setup, I managed to achieve the setup with the help of minikube and kind both.

My primary goals here are :

  1. Get docker-deamon working without the need of Docker Desktop, this is achieved with below commands:
minikube start --driver=hyperkit --container-runtime=docker --no-kubernetes
eval $(minikube docker-env)
  1. Setup k8s cluster using ctlptl with local registry without much complexity. I installed kind for this and run below commands.
  cat <<EOF | ctlptl apply -f -
  apiVersion: ctlptl.dev/v1alpha1
  kind: Registry
  name: ctlptl-registry
  port: 5005
  ---
  apiVersion: ctlptl.dev/v1alpha1
  kind: Cluster
  product: kind
  registry: ctlptl-registry
  EOF

Its not a clean setup, but it does the job for me now.

from ctlptl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.