added pdf and draw

This commit is contained in:
Jun-te Kim 2026-02-15 23:52:11 +00:00
parent daa77e18f8
commit fbd121716d
2 changed files with 137 additions and 0 deletions

67
draw/draw.yaml Normal file
View file

@ -0,0 +1,67 @@
# ================================
# EXCALIDRAW - STATELESS
# https://excalidraw.com
# ================================
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: excalidraw
labels:
app: excalidraw
spec:
replicas: 1
selector:
matchLabels:
app: excalidraw
template:
metadata:
labels:
app: excalidraw
spec:
nodeSelector:
kubernetes.io/hostname: mist
containers:
- name: excalidraw
image: excalidraw/excalidraw:latest
ports:
- containerPort: 80
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "300m"
memory: "256Mi"
---
apiVersion: v1
kind: Service
metadata:
name: excalidraw
spec:
selector:
app: excalidraw
ports:
- port: 80
targetPort: 80
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: excalidraw-ingressroute
spec:
entryPoints:
- websecure
routes:
- match: Host(`draw.juntekim.com`)
kind: Rule
services:
- name: excalidraw
port: 80
tls:
certResolver: myresolver
domains:
- main: draw.juntekim.com

70
pdf/pdf.yaml Normal file
View file

@ -0,0 +1,70 @@
# ================================
# STIRLING PDF - STATELESS
# https://github.com/Stirling-Tools/Stirling-PDF
# ================================
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: stirling-pdf
labels:
app: stirling-pdf
spec:
replicas: 1
selector:
matchLabels:
app: stirling-pdf
template:
metadata:
labels:
app: stirling-pdf
spec:
nodeSelector:
kubernetes.io/hostname: mist
containers:
- name: stirling-pdf
image: frooodle/s-pdf:latest
ports:
- containerPort: 8080
env:
- name: DOCKER_ENABLE_SECURITY
value: "false"
resources:
requests:
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1"
memory: "1Gi"
---
apiVersion: v1
kind: Service
metadata:
name: stirling-pdf
spec:
selector:
app: stirling-pdf
ports:
- port: 8080
targetPort: 8080
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: stirling-pdf-ingressroute
spec:
entryPoints:
- websecure
routes:
- match: Host(`pdf.juntekim.com`)
kind: Rule
services:
- name: stirling-pdf
port: 8080
tls:
certResolver: myresolver
domains:
- main: pdf.juntekim.com