-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·34 lines (22 loc) · 1.19 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Setup script for creating a minikube instance and build the needed applications
NAMESPACE=neuroscan
minikube start --cpus 2 --memory=2g --disk-size 60g --driver=docker
minikube addons enable ingress
minikube addons enable metrics-server
# make sure we are on minikube
kubectl config use-context minikube
kubectl create ns ${NAMESPACE}
# Argo
# kubectl create ns argo-workflows
# kubectl create ns argo
# kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo/v2.4.3/manifests/install.yaml
# kubectl create rolebinding argo-workflows --clusterrole=admin --serviceaccount=argo-workflows:argo-workflows -n argo-workflows
# kubectl create rolebinding argo-workflows-default --clusterrole=admin --serviceaccount=${NAMESPACE}:default -n argo-workflows
kubectl create rolebinding ${NAMESPACE}-admin-default --clusterrole=admin --serviceaccount=${NAMESPACE}:default -n ${NAMESPACE}
eval $(minikube docker-env)
harness-deployment cloud-harness . -l -n ${NAMESPACE} -d yale.local -dtls -e dev -i neuroscan
eval $(minikube docker-env)
kubectl config use-context minikube
skaffold dev --cleanup=false
echo To activate the minikube cluster please execute: eval \$\(minikube docker-env\)