begin nginx/ssl w/o ingress

This commit is contained in:
Nico Schottelius 2021-06-18 20:39:35 +02:00
parent 3dcec34033
commit 0a565c9e99
4 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: etherpadlite
spec:
selector:
matchLabels:
app: etherpadsooooolite
replicas: 1
template:
metadata:
labels:
app: etherpadsooooolite
spec:
containers:
- name: etherpad
image: etherpad/etherpad:1.8.13
ports:
- containerPort: 9001
volumeMounts:
- name: etherpadconfig
mountPath: "/opt/etherpad-lite/settings.json"
subPath: settings.json
volumes:
- name: etherpadconfig
configMap:
name: etherpadliteconfig
---
apiVersion: v1
kind: Service
metadata:
name: etherpad
labels:
app: etherpadsooooolite
spec:
type: ClusterIP
ports:
- port: 9001
selector:
app: etherpadsooooolite

View file

@ -0,0 +1,10 @@
configMapGenerator:
- name:
files:
- settings.json=settings.json
commonLabels:
app: etherpadlite
customer: xyz
resources:
- deployment.yaml

View file

@ -0,0 +1,20 @@
server {
listen *:443 ssl http2;
listen [::]:443 ssl http2;
server_name www.schottelius.org;
access_log /home/services/www/nico/www.schottelius.org/logs/access.log;
ssl_certificate /etc/letsencrypt/live/www.schottelius.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.schottelius.org/privkey.pem;
index index.html index.htm;
location / {
root /home/services/www/nico/www.schottelius.org/www;
autoindex on;
}
}

View file

@ -0,0 +1,6 @@
commonLabels:
app: ungleichetherpad
customer: ungleich
bases:
- ../../base
namePrefix: ungleich-