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