Skip to content

Commit

Permalink
updated minikube start script
Browse files Browse the repository at this point in the history
  • Loading branch information
damianx1337 committed May 15, 2024
1 parent 2d4dd27 commit f884533
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions minikube-start-stop.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

export CONTAINERS_MACHINE_PROVIDER=applehv

if [ $1 == "start" ]; then
echo "starting podman machine and minikube k8s cluster..."
podman machine init --cpus 6 --memory 8192 --disk-size 15 minikube-6-8
podman machine init --cpus 6 --memory 8000 --disk-size 15 minikube-6-8
podman system connection default minikube-6-8-root
podman machine start minikube-6-8
minikube start -p 1-node-cluster --nodes 1 --memory 7000 --cpus 4 --kubernetes-version=v1.26.3 --driver=podman --container-runtime=containerd
minikube start -p 1-node-cluster --nodes 1 --memory 6000 --cpus 4 --kubernetes-version=v1.28.10 --driver=podman --container-runtime=containerd
minikube profile list
echo "DONE"
elif [ $1 == "stop" ]; then
Expand All @@ -14,7 +16,7 @@ elif [ $1 == "stop" ]; then
minikube delete -p 1-node-cluster
podman machine stop minikube-6-8
podman machine rm minikube-6-8
echo "DONE"
echo "CLEANUP DONE"
fi

exit 0

0 comments on commit f884533

Please sign in to comment.