cicd: setup deployment
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 9s

This commit is contained in:
szymi 2026-01-01 08:42:32 +01:00
parent 19c8777932
commit 754a9e1816
5 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: drawio
namespace: drawio
labels:
app: drawio
spec:
replicas: 1
selector:
matchLabels:
app: drawio
template:
metadata:
labels:
app: drawio
spec:
containers:
- name: drawio
image: jgraph/drawio:latest
ports:
- containerPort: 8080
name: http
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 10
periodSeconds: 5

20
deployment/ingress.yaml Normal file
View file

@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: drawio
namespace: drawio
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
ingressClassName: nginx
rules:
- host: drawio.szymi.ddns.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: drawio
port:
number: 80

View file

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: drawio
resources:
- namespace.yaml
- deployment.yaml
- service.yaml
- ingress.yaml

View file

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: drawio
labels:
name: drawio

16
deployment/service.yaml Normal file
View file

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: drawio
namespace: drawio
labels:
app: drawio
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: drawio