github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/dev/k8s/utils/deploy_minikube.sh (about) 1 #!/bin/bash 2 3 set -e 4 5 source utils/pre_check.sh 6 7 # Delete any pre-existing minikube deployment. 8 minikube delete 9 10 # We use docker as it is simple to use. 11 # It's run in subshell to not "eat" the input. 12 minikube_cpu=${CPU:-12} 13 minikube_memory=${MEMORY:-24000} 14 (minikube start --driver=docker --cpus ${minikube_cpu} --memory ${minikube_memory}) 15 16 source utils/ais_minikube_setup.sh 17 18 # Check if we should set up a local registry 19 if [ -z "${USE_LOCAL_REGISTRY}" ]; then 20 echo "Start local registry: (y/n) ?" 21 read -r local_registry 22 if [[ "$local_registry" == "y" ]]; then 23 export USE_LOCAL_REGISTRY=true 24 fi 25 fi 26 27 if [ "$USE_LOCAL_REGISTRY" = true ]; then 28 source utils/minikube_registry.sh 29 fi 30 31 32 # Check if we should deploy prometheus metrics 33 if [ -z "${DEPLOY_METRICS}" ]; then 34 echo "Deploy metrics collection (Prometheus operator): (y/n) ?" 35 read -r metrics 36 if [[ "$metrics" == "y" ]]; then 37 export DEPLOY_METRICS=true 38 fi 39 fi 40 41 if [ "$DEPLOY_METRICS" = true ]; then 42 source utils/enable_metrics.sh 43 fi