test
This commit is contained in:
parent
1f39908e1c
commit
9de6234818
14
deletesh.sh
14
deletesh.sh
@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
kubectl delete svc nginx-service
|
||||
kubectl delete svc mariadb-service
|
||||
kubectl delete svc phpmyadmin-service
|
||||
kubectl delete svc ftps
|
||||
kubectl delete svc wp-service
|
||||
kubectl delete deployment telegraf
|
||||
kubectl delete deployment nginx-deployment
|
||||
kubectl delete deployment mariadb
|
||||
kubectl delete deployment wp
|
||||
kubectl delete deployment phpmyadmin-deployment
|
||||
kubectl delete deployment ftps
|
||||
kubectl delete pods --all
|
||||
kubectl delete pv --all
|
||||
@ -24,4 +24,6 @@ kubectl apply -f srcs/yaml/influxdb.yaml
|
||||
kubectl apply -f srcs/yaml/telegraf.yaml
|
||||
kubectl apply -f srcs/yaml/grafana.yaml
|
||||
|
||||
echo "Minikube IP: ${IP}"
|
||||
echo "Minikube IP: ${IP}"
|
||||
|
||||
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --incognito --ignore-certificate-errors https://192.168.99.166/
|
||||
BIN
srcs/.DS_Store
vendored
BIN
srcs/.DS_Store
vendored
Binary file not shown.
@ -1,53 +0,0 @@
|
||||
[global_tags]
|
||||
[agent]
|
||||
interval = "10s"
|
||||
round_interval = true
|
||||
metric_batch_size = 1000
|
||||
metric_buffer_limit = 10000
|
||||
collection_jitter = "0s"
|
||||
flush_interval = "10s"
|
||||
flush_jitter = "0s"
|
||||
precision = ""
|
||||
debug = false
|
||||
quiet = false
|
||||
logfile = ""
|
||||
hostname = "ftps"
|
||||
omit_hostname = false
|
||||
|
||||
###############################################################################
|
||||
# OUTPUT PLUGINS #
|
||||
###############################################################################
|
||||
|
||||
[[outputs.influxdb]]
|
||||
urls = ["http://influxdb:8086"]
|
||||
database = "telegraf"
|
||||
retention_policy = ""
|
||||
write_consistency = "any"
|
||||
timeout = "5s"
|
||||
username = "admin"
|
||||
password = "passwd"
|
||||
|
||||
###############################################################################
|
||||
# INPUT PLUGINS #
|
||||
###############################################################################
|
||||
|
||||
[[inputs.cpu]]
|
||||
percpu = false
|
||||
totalcpu = true
|
||||
collect_cpu_time = true
|
||||
fielddrop = ["time_guest","time_guest_nice","time_irq","time_nice","time_softirq","time_steal","usage_guest","usage_guest_nice","usage_irq","usage_nice","usage_softirq","usage_steal"]
|
||||
interval = "2s"
|
||||
[[inputs.disk]]
|
||||
mount_points = ["/","/var","/data"]
|
||||
fielddrop=["used","inodes_used"]
|
||||
[[inputs.mem]]
|
||||
fielddrop=["active","buffered","cached","free","inactive","used","used_percent"]
|
||||
[[inputs.processes]]
|
||||
[[inputs.swap]]
|
||||
fielddrop=["free","total"]
|
||||
[[inputs.system]]
|
||||
fielddrop=["n_users","uptime_format"]
|
||||
[[inputs.nstat]]
|
||||
interval = "2s"
|
||||
proc_net_netstat = "" # this is of interest.
|
||||
fieldpass = ["IpExtOutOctets","IpExtInOctets"]
|
||||
@ -7,6 +7,7 @@ RUN apk add openrc mc nano supervisor openssh nginx openssl && rm -f /var/cache/
|
||||
COPY index.html nginx.conf ./
|
||||
RUN mkdir -p /run/nginx www && \
|
||||
mv index.html /var/www/localhost/htdocs
|
||||
COPY /images /var/www/localhost/htdocs/images
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
RUN mkdir /etc/nginx/ssl
|
||||
RUN openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out /etc/nginx/ssl/html.pem -keyout /etc/nginx/ssl/html.key -subj "/C=RU/ST=Kazan/L=Kazan/O=21 School/OU=mdenys/CN=html"
|
||||
|
||||
BIN
srcs/nginx/images/v1_26.png
Executable file
BIN
srcs/nginx/images/v1_26.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
BIN
srcs/nginx/images/v1_35.png
Executable file
BIN
srcs/nginx/images/v1_35.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
srcs/nginx/images/wp.png
Normal file
BIN
srcs/nginx/images/wp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@ -1,13 +1,151 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
|
||||
<link href="https://fonts.googleapis.com/css?family=Pacifico&display=swap" rel="stylesheet" />
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet" />
|
||||
<style>
|
||||
|
||||
|
||||
body{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: rgba(117,156,255,1);
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
|
||||
.head {
|
||||
color: rgba(255,255,255,1);
|
||||
top: 63px;
|
||||
left: 375px;
|
||||
font-family: Pacifico;
|
||||
font-weight: Regular;
|
||||
font-size: 144px;
|
||||
opacity: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.box-container {
|
||||
width: 1024px;
|
||||
align-items: center;
|
||||
align-self: center;
|
||||
align-content: center;
|
||||
display: grid;
|
||||
row-gap: 23px;
|
||||
column-gap: 23px;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
|
||||
margin-bottom: 40px!important;
|
||||
}
|
||||
|
||||
|
||||
.custom
|
||||
{
|
||||
grid-template-rows: 200px 200px;
|
||||
grid-template-areas:
|
||||
"gr wp "
|
||||
"ph wp ";
|
||||
}
|
||||
|
||||
.gr{
|
||||
grid-area: gr;
|
||||
}
|
||||
.ph{
|
||||
grid-area: ph;
|
||||
}
|
||||
.wp{
|
||||
grid-area: wp;
|
||||
}
|
||||
|
||||
|
||||
.box{
|
||||
background: #fff;
|
||||
border-radius: 11px;
|
||||
padding: 15px;
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
|
||||
height: -webkit-fill-available;
|
||||
align-content: center;
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
|
||||
.link {
|
||||
height: fit-content;
|
||||
text-decoration: none;
|
||||
|
||||
background: #fff;
|
||||
border-radius: 11px;
|
||||
padding: 15px;
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.link span{
|
||||
font-family: Roboto;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 36px;
|
||||
line-height: 42px;
|
||||
|
||||
color: #383838;
|
||||
|
||||
}
|
||||
|
||||
.box img{
|
||||
max-width: 45%;
|
||||
align-content: center;
|
||||
justify-self: center;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-sm"><h1 class="display-1">Welcome to Mdenys ft_services</h1></div>
|
||||
|
||||
|
||||
|
||||
<span class="head">Kubernetes</span>
|
||||
|
||||
|
||||
|
||||
<div class="box-container custom">
|
||||
|
||||
<a href="https://192.168.99.166:5000/" class="box gr"><img src="images/v1_26.png" alt=""></a>
|
||||
<a href="http://192.168.99.166:3000/" class="box ph" ><img src="images/v1_35.png" alt=""></a>
|
||||
<a href="https://192.168.99.166:5050/" class="box wp"><img src="images/wp.png" alt=""></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box-container">
|
||||
<a href="https://192.168.99.166/phpmyadmin" class="link">
|
||||
<span >/phpmyadmin</span>
|
||||
</a>
|
||||
<a class="link" href="https://192.168.99.166/wordpress">
|
||||
<span >/wordpress</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -18,19 +18,19 @@ http {
|
||||
ssl_certificate /etc/nginx/ssl/html.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/html.key;
|
||||
|
||||
|
||||
|
||||
location /wordpress {
|
||||
return 307 https://$host:5050/;
|
||||
}
|
||||
|
||||
location = ^(/phpmyadmin)$ {
|
||||
proxy_pass https://192.168.99.166:5000/$1;
|
||||
}
|
||||
location = ^(/phpmyadmin)$ {
|
||||
proxy_pass https://192.168.99.166:5000/$1;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user