Comments (4)
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.
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.
The reason I am trying out this setup on mac is I would like to avoid spining 2 VMs
- Docker Desktop or equivalent just to run docker deamon
- 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.
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 :
- 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)
- 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)
- Option to specify a registry image URL HOT 1
- k3d config options HOT 5
- support docker for desktop linux k8s clusters HOT 2
- support custom registry image with `create cluster` HOT 1
- Trouble turning off Kubernetes in Docker Desktop
- k3d on mac "timed out waiting for cluster to start" | wrong hostname to connect to cluster HOT 2
- Clusters broken with Minikube 1.26.0 HOT 6
- Feature request: Option to append to `docker-desktop` `vm.fileSharing` HOT 1
- Needs documentation: Option to disable Kubernetes in Docker Desktop HOT 2
- The cascade flag seems to be backwards HOT 5
- Enable storage.delete for registry HOT 1
- setting up a kind cluster with docker mounted in docker HOT 1
- creating cluster: unsupported Kind version v0.15.0. HOT 2
- Linux install fails HOT 3
- ctlptl does not work when containerd integration is enabled HOT 1
- Modification with `ctlptl docker-desktop set` results in `status code 400` HOT 1
- Support for ingress with kind HOT 1
- Registry support for htpasswd
- Support Kind v0.19.0 HOT 1
- K3D schema upgrade to v1alpha5 Simple. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctlptl.