2022-04-20 16:40:05 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: minipaste-server
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: minipaste-server
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: minipaste-server
|
|
|
|
spec:
|
2022-04-20 16:53:20 +00:00
|
|
|
imagePullSecrets:
|
|
|
|
- name: regcred
|
2022-04-20 16:40:05 +00:00
|
|
|
containers:
|
2022-04-20 16:56:35 +00:00
|
|
|
- image: registry.t-juice.club/torjus/minipaste:latest
|
2022-04-20 16:40:05 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 50Mi
|
|
|
|
cpu: 500m
|
|
|
|
name: minipaste-server
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
2022-04-20 17:11:11 +00:00
|
|
|
livenessProbe:
|
|
|
|
failureThreshold: 2
|
|
|
|
periodSeconds: 15
|
|
|
|
httpGet:
|
|
|
|
path: /
|
|
|
|
port: 8080
|