-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·47 lines (35 loc) · 1.83 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
# **************************************************************************** #
# #
# ::: :::::::: #
# setup.sh :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aberry <aberry> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/03/20 03:15:58 by aberry #+# #+# #
# Updated: 2021/03/20 03:15:59 by aberry ### ########.fr #
# #
# **************************************************************************** #
# Удаляем предыдущий minikube если он есть
minikube delete
# Запускаем новый
minikube start --vm-driver=virtualbox
# Устанавливаем docker env
eval $(minikube docker-env)
minikube addons enable metallb
kubectl apply -f ./srcs/metallb.yaml
docker build -t nginx_image ./srcs/nginx
kubectl apply -f ./srcs/nginx/nginx.yaml
docker build -t phpmyadmin_image ./srcs/phpMyAdmin
kubectl apply -f ./srcs/phpMyAdmin/phpmyadmin.yaml
docker build -t wordpress_image ./srcs/wordpress
kubectl apply -f ./srcs/wordpress/wordpress.yaml
docker build -t mysql_image ./srcs/mySQL
kubectl apply -f ./srcs/mySQL/mysql.yaml
docker build -t ftps_image ./srcs/FTPS
kubectl apply -f ./srcs/FTPS/ftps.yaml
docker build -t grafana_image ./srcs/grafana
kubectl apply -f ./srcs/grafana/grafana.yaml
docker build -t influxdb_image ./srcs/influxdb
kubectl apply -f ./srcs/influxdb/influxdb.yaml
# Открываем дашборд
minikube dashboard