Commit b6ec2561 authored by Yuci Gou's avatar Yuci Gou

K8s configuration files for EBI production K8s service

parent ee035639
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ftp-pv-claim
labels:
app: ftp-storage-claim
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
storageClassName: standard
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: xpub-epmc-sftp-deployment
labels:
app: xpub-epmc-sftp
spec:
replicas: 1
selector:
matchLabels:
app: xpub-epmc-sftp
template:
metadata:
labels:
app: xpub-epmc-sftp
spec:
restartPolicy: Always
volumes:
- name: ftp-storage
persistentVolumeClaim:
claimName: ftp-pv-claim
containers:
- name: sftp-server
image: atmoz/sftp
args:
- foo:pass:1001
ports:
- containerPort: 22
volumeMounts:
- name: ftp-storage
mountPath: /home/foo
subPath: sftpdata
- name: ftp-storage
mountPath: /etc/sftp
subPath: sftpconfig
apiVersion: v1
kind: Service
metadata:
name: xpub-epmc-sftp-service
labels:
app: xpub-epmc
spec:
type: NodePort
ports:
- name: '22'
port: 22
targetPort: 22
selector:
app: xpub-epmc-sftp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment