final
This commit is contained in:
parent
9de6234818
commit
d3fc4e825f
2
setup.sh
2
setup.sh
@ -4,7 +4,9 @@ IP=$(kubectl get node -o=custom-columns='DATA:status.addresses[0].address' | sed
|
|||||||
minikube addons enable metallb
|
minikube addons enable metallb
|
||||||
minikube addons enable metrics-server
|
minikube addons enable metrics-server
|
||||||
eval $(minikube docker-env)
|
eval $(minikube docker-env)
|
||||||
|
|
||||||
minikube dashboard &
|
minikube dashboard &
|
||||||
|
|
||||||
docker build -t nginx_image srcs/nginx
|
docker build -t nginx_image srcs/nginx
|
||||||
docker build -t phpmyadmin_image srcs/phpmyadmin
|
docker build -t phpmyadmin_image srcs/phpmyadmin
|
||||||
docker build -t mariadb-image srcs/mariadb
|
docker build -t mariadb-image srcs/mariadb
|
||||||
|
|||||||
@ -18,19 +18,21 @@ http {
|
|||||||
ssl_certificate /etc/nginx/ssl/html.pem;
|
ssl_certificate /etc/nginx/ssl/html.pem;
|
||||||
ssl_certificate_key /etc/nginx/ssl/html.key;
|
ssl_certificate_key /etc/nginx/ssl/html.key;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
location /wordpress {
|
location /wordpress {
|
||||||
return 307 https://$host:5050/;
|
return 307 https://192.168.99.166:5050/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = ^(/phpmyadmin)$ {
|
|
||||||
proxy_pass https://192.168.99.166:5000/$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /phpmyadmin {
|
|
||||||
|
location /phpmyadmin/ {
|
||||||
proxy_pass https://192.168.99.166:5000/;
|
proxy_pass https://192.168.99.166:5000/;
|
||||||
proxy_redirect /index.php /phpmyadmin/index.php;
|
proxy_redirect /index.php /phpmyadmin/index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6,8 +6,6 @@ RUN tar -xzf /etc/telegraf-1.17.3_linux_amd64.tar.gz -C /etc/ ; \
|
|||||||
RUN mv /etc/telegraf-1.17.3 /telegraf
|
RUN mv /etc/telegraf-1.17.3 /telegraf
|
||||||
RUN cp -r telegraf/* ./
|
RUN cp -r telegraf/* ./
|
||||||
RUN rm -rf /telegraf
|
RUN rm -rf /telegraf
|
||||||
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub \
|
|
||||||
https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
|
||||||
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
|
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
|
||||||
RUN apk add glibc-2.28-r0.apk
|
RUN apk add glibc-2.28-r0.apk
|
||||||
RUN telegraf -sample-config telegraf.conf --input-filter cpu:mem --output-filter influxdb > telegraf.conf
|
RUN telegraf -sample-config telegraf.conf --input-filter cpu:mem --output-filter influxdb > telegraf.conf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user