Adds caddy depl

This commit is contained in:
2025-06-09 09:34:23 +02:00
parent a3ea1feb46
commit a3b2a4dede
13 changed files with 174 additions and 78 deletions

39
porty/depl.yaml Normal file
View File

@@ -0,0 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: porty
labels:
app: porty
spec:
replicas: 3
selector:
matchLabels:
app: porty
template:
metadata:
name: porty
labels:
app: porty
spec:
containers:
- name: porty
image: gitea.svitan.dev/streamer272/svitan.dev:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
protocol: TCP
resources:
requests:
cpu: "500m"
memory: "32Mi"
limits:
cpu: "2000m"
memory: "256Mi"
livenessProbe: # if liveness fails, container is restarted
httpGet:
port: 3000
path: /
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 10
failureThreshold: 3

27
porty/pod.yaml Normal file
View File

@@ -0,0 +1,27 @@
apiVersion: v1
kind: Pod
metadata:
name: portfolio
spec:
containers:
- image: gitea.svitan.dev/streamer272/svitan.dev:latest
name: portfolio
ports:
- containerPort: 3000
name: http
protocol: TCP
resources:
requests:
cpu: "500m"
memory: "32Mi"
limits:
cpu: "2000m"
memory: "256Mi"
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 10
failureThreshold: 3

12
porty/serv.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: porty
spec:
selector:
app: porty
ports:
- protocol: TCP
port: 3333 # this is the port the users will access, so probably should be 80
targetPort: 3000
type: LoadBalancer