diff --git a/deployments/excalidraw/deployment.yaml b/deployments/excalidraw/deployment.yaml new file mode 100644 index 0000000..061c11d --- /dev/null +++ b/deployments/excalidraw/deployment.yaml @@ -0,0 +1,29 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: excalidraw + namespace: apps + labels: + app: excalidraw +spec: + replicas: 1 + selector: + matchLabels: + app: excalidraw + template: + metadata: + labels: + app: excalidraw + spec: + containers: + - name: excalidraw + image: excalidraw/excalidraw:latest + ports: + - containerPort: 80 + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 500m + memory: 512Mi \ No newline at end of file diff --git a/deployments/excalidraw/ingress.yaml b/deployments/excalidraw/ingress.yaml new file mode 100644 index 0000000..14dca73 --- /dev/null +++ b/deployments/excalidraw/ingress.yaml @@ -0,0 +1,26 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: excalidraw + namespace: apps + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + traefik.ingress.kubernetes.io/router.entrypoints: web,websecure + traefik.ingress.kubernetes.io/router.tls: "true" +spec: + ingressClassName: traefik + tls: + - hosts: + - excalidraw.khalisio.com + secretName: excalidraw-tls + rules: + - host: excalidraw.khalisio.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: excalidraw + port: + number: 80 \ No newline at end of file diff --git a/deployments/excalidraw/service.yaml b/deployments/excalidraw/service.yaml new file mode 100644 index 0000000..fec9480 --- /dev/null +++ b/deployments/excalidraw/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: excalidraw + namespace: apps +spec: + selector: + app: excalidraw + ports: + - name: http + port: 80 + targetPort: 80 + type: ClusterIP \ No newline at end of file