103 lines
2.4 KiB
YAML
103 lines
2.4 KiB
YAML
![]() |
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: syncthing-landing-html
|
||
|
namespace: syncthing
|
||
|
data:
|
||
|
index.html: |
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Syncthing Instances</title>
|
||
|
<style>
|
||
|
body {
|
||
|
font-family: Arial, sans-serif;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
height: 100vh;
|
||
|
margin: 0;
|
||
|
background-color: #f0f0f0;
|
||
|
}
|
||
|
.container {
|
||
|
text-align: center;
|
||
|
background: white;
|
||
|
padding: 40px;
|
||
|
border-radius: 10px;
|
||
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||
|
}
|
||
|
h1 {
|
||
|
color: #333;
|
||
|
margin-bottom: 30px;
|
||
|
}
|
||
|
.links {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
gap: 15px;
|
||
|
}
|
||
|
a {
|
||
|
display: inline-block;
|
||
|
padding: 15px 30px;
|
||
|
background-color: #0078e7;
|
||
|
color: white;
|
||
|
text-decoration: none;
|
||
|
border-radius: 5px;
|
||
|
transition: background-color 0.3s;
|
||
|
}
|
||
|
a:hover {
|
||
|
background-color: #0056b3;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<h1>Syncthing Instances</h1>
|
||
|
<div class="links">
|
||
|
<a href="/nas">NAS Instance</a>
|
||
|
<a href="/master">Master Instance</a>
|
||
|
<a href="/iris">Iris Instance</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: syncthing-landing
|
||
|
namespace: syncthing
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: syncthing-landing
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: syncthing-landing
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: nginx
|
||
|
image: nginx:alpine
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
volumeMounts:
|
||
|
- name: html
|
||
|
mountPath: /usr/share/nginx/html
|
||
|
volumes:
|
||
|
- name: html
|
||
|
configMap:
|
||
|
name: syncthing-landing-html
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: syncthing-landing
|
||
|
namespace: syncthing
|
||
|
spec:
|
||
|
selector:
|
||
|
app: syncthing-landing
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 80
|
||
|
targetPort: 80
|