-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal-eduk8s-start.sh
executable file
·39 lines (27 loc) · 1.04 KB
/
local-eduk8s-start.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
35
36
37
38
39
minikube start --insecure-registry=192.168.64.0/24 --cpus=4 --memory=8g --vm
minikube addons enable ingress
minikube addons enable ingress-dns
# Install operator
kubectl apply -k "github.com/eduk8s/eduk8s?ref=master"
# Install add-ons
if [[ -d add-ons ]]; then
# printf "\nDeleting add-ons\n"
# kubectl delete -k tooling/overlays/educates/
printf "\Installing add-ons\n"
kubectl apply -k tooling/overlays/educates/
printf "\nFinished installing add-ons\n"
fi
# Capture minikube ip
IP=$(minikube ip)
# Configure operator with domain name
kubectl set env deployment/eduk8s-operator -n eduk8s INGRESS_DOMAIN=$IP.nip.io
# If working with large images configure nginx add `proxy-body-size: 1g` in data section:
# kubectl edit configmap nginx-load-balancer-conf -n kube-system
# Show if if above worked
kubectl get all -n eduk8s
# deploy workshop definition
kubectl apply -f ./resources/workshop.yaml
# deploy training portal
kubectl apply -f ./resources/training-portal.yaml
# Get trainingportals, will have to
kubectl get trainingportal --watch