github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/dev/k8s/utils/ais_minikube_setup.sh (about)

     1  echo "Checking kubectl default sa account..."
     2  kubectl get sa default >/dev/null 2>&1
     3  if [[ $? -ne 0 ]]; then
     4    kubectl create sa default
     5  fi
     6  
     7  kubectl apply -f kube_templates/minikube_perms.yaml
     8  
     9  minikube addons enable metrics-server
    10  
    11  # Commands below are run in subshell and the 0 file descriptor is closed
    12  # so they do not "eat" the input.
    13  
    14  # Make /var/lib/minikube/ais
    15  (minikube ssh -- 'sudo mkdir -p /var/lib/minikube/ais')
    16  
    17  # Mount binding /tmp to a persistent path
    18  (minikube ssh -- 'sudo mount --bind /var/lib/minikube/ais /tmp')