begin nginx/ssl w/o ingress
This commit is contained in:
parent
3dcec34033
commit
0a565c9e99
4 changed files with 76 additions and 0 deletions
40
apps/nginx-certbot/base/deployment.yaml
Normal file
40
apps/nginx-certbot/base/deployment.yaml
Normal 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
|
10
apps/nginx-certbot/base/kustomization.yaml
Normal file
10
apps/nginx-certbot/base/kustomization.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
configMapGenerator:
|
||||
- name:
|
||||
files:
|
||||
- settings.json=settings.json
|
||||
|
||||
commonLabels:
|
||||
app: etherpadlite
|
||||
customer: xyz
|
||||
resources:
|
||||
- deployment.yaml
|
20
apps/nginx-certbot/base/nginx.conf
Normal file
20
apps/nginx-certbot/base/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
6
apps/nginx-certbot/overlays/ungleich/kustomization.yaml
Normal file
6
apps/nginx-certbot/overlays/ungleich/kustomization.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
commonLabels:
|
||||
app: ungleichetherpad
|
||||
customer: ungleich
|
||||
bases:
|
||||
- ../../base
|
||||
namePrefix: ungleich-
|
Loading…
Reference in a new issue