diff --git a/draw/draw.yaml b/draw/draw.yaml new file mode 100644 index 0000000..fd62069 --- /dev/null +++ b/draw/draw.yaml @@ -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 diff --git a/pdf/pdf.yaml b/pdf/pdf.yaml new file mode 100644 index 0000000..1a7eeae --- /dev/null +++ b/pdf/pdf.yaml @@ -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