40 lines
856 B
YAML
40 lines
856 B
YAML
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: IfNotPresent
|
|
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
|