A single shell-script to setup local development environment. Making use of https://github.com/minixxie/k8s-services
curl -sSL https://raw.githubusercontent.com/minixxie/ldev/refs/heads/main/ldev | bash -s -- installldev installldev help # prints out how to use- k8s
- gpu
- mysql
- pgsql
- redis
- mongo
- apollo
- minio
- ollama
ldev mysql up # start mysql in k8s
ldev mysql get # get mysql k8s resources (deployment, pod, svc, pvc, etc)
ldev mysql down # stop mysql in k8s
ldev mysql cli # use mysql cli to connect to the mysql serverldev command can also configure and execute my application in k8s as deployments, with minimal effort. You don't need to write the Containerfile/kustomization files on your own. The ldev script will detect your project and generate them for you. And minimized configurations can be customized in ldev.yaml at the root folder of your project.
Step 1: initialize the yaml config file ldev.yaml
ldev initStep 2: build the container image
ldev buildStep 3: generate the kustomization files and spin up in k8s
ldev upTo stop and remove from k8s:
ldev downTo list what resources were created in k8s:
ldev getTo tail the logs of the pod:
ldev logsEnter the pod's main container to debug:
ldev exec