Files
cloud-config/jenova/web.yaml
Paul Mathieu 0cf7c9b908 Initial commit: mushroom, zetikettes
With basic config to have TLS certs with ACME.
It works!

TODO:
- gitea
- bar-jupyter
2026-03-02 06:48:46 +00:00

82 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: web
name: web
spec:
replicas: 1
selector:
matchLabels:
app: web
strategy: {}
template:
metadata:
labels:
app: web
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 80
volumeMounts:
- name: index
mountPath: /usr/share/nginx/html/index.html
subPath: index.html
- name: nginx-config
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
volumes:
- name: index
configMap:
name: jenova-index-html
- name: nginx-config
configMap:
name: nginx-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: jenova-index-html
data:
index.html: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>P</title>
</head>
<body>
<div align="center">
<div>
<pre>
.----------------.
| .--------------. |
| | ______ | |
| | |_ __ \ | |
| | | |__) | | |
| | | ___/ | |
| | _| |_ | |
| | |_____| | |
| | | |
| '--------------' |
'----------------'
</pre>
</div>
</div>
</body>
</html>
---
apiVersion: v1
kind: Service
metadata:
name: jenova
spec:
selector:
app: web
ports:
- port: 80