Add Enigma BBS deployment files
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
This commit is contained in:
76
deployment.yaml
Normal file
76
deployment.yaml
Normal file
@@ -0,0 +1,76 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: enigmabbs
|
||||
namespace: enigmabbs
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: enigmabbs
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: enigmabbs
|
||||
spec:
|
||||
containers:
|
||||
- name: enigmabbs
|
||||
image: git.giaco.net/enigma/enigmabbs:latest
|
||||
ports:
|
||||
- containerPort: 8888
|
||||
name: web
|
||||
- containerPort: 44510
|
||||
name: telnet
|
||||
- containerPort: 44511
|
||||
name: ssh
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
volumeMounts:
|
||||
- name: enigmabbs-data
|
||||
mountPath: /enigma-bbs/db
|
||||
- name: enigmabbs-art
|
||||
mountPath: /enigma-bbs/art
|
||||
- name: enigmabbs-config-volume
|
||||
mountPath: /enigma-bbs/config
|
||||
- name: enigmabbs-mods
|
||||
mountPath: /enigma-bbs/mods
|
||||
- name: enigmabbs-logs
|
||||
mountPath: /enigma-bbs/logs
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "1000m"
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 8888
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 8888
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 10
|
||||
failureThreshold: 3
|
||||
volumes:
|
||||
- name: enigmabbs-data
|
||||
persistentVolumeClaim:
|
||||
claimName: enigmabbs-data
|
||||
- name: enigmabbs-art
|
||||
persistentVolumeClaim:
|
||||
claimName: enigmabbs-art
|
||||
- name: enigmabbs-config-volume
|
||||
configMap:
|
||||
name: enigmabbs-config
|
||||
- name: enigmabbs-mods
|
||||
persistentVolumeClaim:
|
||||
claimName: enigmabbs-mods
|
||||
- name: enigmabbs-logs
|
||||
persistentVolumeClaim:
|
||||
claimName: enigmabbs-logs
|
||||
Reference in New Issue
Block a user