60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: retrom
|
|
name: retrom-deployment
|
|
namespace: default
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app: retrom
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: retrom
|
|
spec:
|
|
containers:
|
|
- name: retrom
|
|
image: ghcr.io/jmberesford/retrom-service:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 5101
|
|
protocol: TCP
|
|
- containerPort: 3000
|
|
protocol: TCP
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /app/config/
|
|
name: retrom-config
|
|
- mountPath: /app/data/
|
|
name: retrom-data
|
|
- mountPath: /app/library
|
|
name: nfs-roms
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- name: retrom-config
|
|
persistentVolumeClaim:
|
|
claimName: retrom-config
|
|
- name: retrom-data
|
|
persistentVolumeClaim:
|
|
claimName: retrom-data
|
|
- name: nfs-roms
|
|
nfs:
|
|
path: /volume2/vol2/Downloads/Roms
|
|
server: 192.168.1.78
|