mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add Kubernetes Deployment
This commit is contained in:
parent
b5d7f5b4ba
commit
dad9900546
1 changed files with 57 additions and 0 deletions
57
deployment.yaml
Normal file
57
deployment.yaml
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: excalidraw
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: excalidraw
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: excalidraw
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: excalidraw
|
||||||
|
image: excalidraw:v1.0.0
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: excalidraw-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: excalidraw
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
|
||||||
|
# https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: excalidraw-ingress
|
||||||
|
labels:
|
||||||
|
name: excalidraw-ingress
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: rescenic.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: excalidraw-service
|
||||||
|
port:
|
||||||
|
number: 80
|
Loading…
Add table
Add a link
Reference in a new issue