88 lines
1.9 KiB
YAML
88 lines
1.9 KiB
YAML
|
apiVersion: v1
|
||
|
kind: List
|
||
|
items:
|
||
|
- apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: simplex-smp-config
|
||
|
namespace: simplex
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 10Gi
|
||
|
- apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: simplex-smp-log
|
||
|
namespace: simplex
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 10Gi
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
name: simplex-smp-server
|
||
|
namespace: simplex
|
||
|
labels:
|
||
|
name: simplex-smp
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
name: simplex-smp
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: simplex-smp
|
||
|
spec:
|
||
|
volumes:
|
||
|
- name: config
|
||
|
persistentVolumeClaim:
|
||
|
claimName: simplex-smp-config
|
||
|
- name: log
|
||
|
persistentVolumeClaim:
|
||
|
claimName: simplex-smp-log
|
||
|
containers:
|
||
|
- name: simplex-smp
|
||
|
image: simplexchat/smp-server:latest
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
ports:
|
||
|
- name: smp-port
|
||
|
containerPort: 5223
|
||
|
protocol: TCP
|
||
|
hostPort: 5223
|
||
|
env:
|
||
|
- name: ADDR
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: simplex-secret
|
||
|
key: ADDR
|
||
|
- name: PASS
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: simplex-secret
|
||
|
key: PASS
|
||
|
volumeMounts:
|
||
|
- name: config
|
||
|
mountPath: /etc/opt/simplex
|
||
|
- name: log
|
||
|
mountPath: /var/opt/simplex
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: simplex-smp
|
||
|
namespace: simplex
|
||
|
spec:
|
||
|
selector:
|
||
|
name: simplex-smp
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 5223
|
||
|
targetPort: 5223
|
||
|
type: ClusterIP
|