-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·52 lines (43 loc) · 1.73 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#starting minikube
minikube stop
minikube delete
minikube start --vm-driver=virtualbox --cpus 2 --memory=4000mb --disk-size=7000
minikube dashboard &
eval $(minikube docker-env)
#uncomment this
#docker pull metallb/speaker:v0.8.2
#docker pull metallb/controller:v0.8.2
minikube addons enable metallb
kubectl apply -f ./srcs/metallb.yaml
#building docker images
docker build -t nginx_img ./srcs/nginx
docker build -t mysql_img ./srcs/mysql
docker build -t phpmyadmin_img ./srcs/phpmyadmin
docker build -t wordpress_img ./srcs/wordpress
docker build -t ftps_img ./srcs/ftps
docker build -t influxdb_img ./srcs/influxdb
docker build -t grafana_img ./srcs/grafana
#applying minikube yaml configurations
kubectl apply -f ./srcs/nginx/nginx.yaml
kubectl apply -f ./srcs/mysql/mysql.yaml
kubectl apply -f ./srcs/phpmyadmin/phpmyadmin.yaml
kubectl apply -f ./srcs/wordpress/wordpress.yaml
kubectl apply -f ./srcs/ftps/ftps.yaml
kubectl apply -f ./srcs/influxdb/influxdb.yaml
kubectl apply -f ./srcs/grafana/grafana.yaml
#kubectl exec influxdb-deployment-7944f8bb66-l4jmc -- pkill influx
#deleting minikube yaml configurations
#kubectl delete -f ./srcs/nginx/nginx.yaml
#kubectl delete -f ./srcs/mysql/mysql.yaml
#kubectl delete -f ./srcs/phpmyadmin/phpmyadmin.yaml
#kubectl delete -f ./srcs/wordpress/wordpress.yaml
#kubectl delete -f ./srcs/ftps/ftps.yamlcd
#kubectl delete -f ./srcs/influxdb/influxdb.yaml
#kubectl delete -f ./srcs/grafana/grafana.yaml
#applying minikube json configurations
# kubectl apply -f ./srcs/nginx/nginx.json
# kubectl apply -f ./srcs/mysql/mysql.json
# kubectl apply -f ./srcs/phpmyadmin/phpmyadmin.json
# kubectl apply -f ./srcs/wordpress/wordpress.json
# kubectl apply -f ./srcs/ftps/ftps.json
# kubectl apply -f ./srcs/nginx/nginx.json