This commit is contained in:
Matthos Denys 2021-03-12 19:43:02 +03:00
parent 9de6234818
commit d3fc4e825f
3 changed files with 11 additions and 9 deletions

View File

@ -4,7 +4,9 @@ IP=$(kubectl get node -o=custom-columns='DATA:status.addresses[0].address' | sed
minikube addons enable metallb
minikube addons enable metrics-server
eval $(minikube docker-env)
minikube dashboard &
docker build -t nginx_image srcs/nginx
docker build -t phpmyadmin_image srcs/phpmyadmin
docker build -t mariadb-image srcs/mariadb

View File

@ -18,19 +18,21 @@ http {
ssl_certificate /etc/nginx/ssl/html.pem;
ssl_certificate_key /etc/nginx/ssl/html.key;
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_redirect /index.php /phpmyadmin/index.php;
}
}
}

View File

@ -1,4 +1,4 @@
FROM alpine:3.12
FROM alpine:3.12
RUN apk update && apk add openrc
ADD https://dl.influxdata.com/telegraf/releases/telegraf-1.17.3_linux_amd64.tar.gz /etc/
RUN tar -xzf /etc/telegraf-1.17.3_linux_amd64.tar.gz -C /etc/ ; \
@ -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 cp -r 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 apk add glibc-2.28-r0.apk
RUN telegraf -sample-config telegraf.conf --input-filter cpu:mem --output-filter influxdb > telegraf.conf