50 lines
909 B
YAML
50 lines
909 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ftp-service
|
|
annotations:
|
|
metallb.universe.tf/allow-shared-ip: minikube
|
|
spec:
|
|
selector:
|
|
app: ftp
|
|
ports:
|
|
- name: ftp
|
|
protocol: TCP
|
|
port: 21
|
|
targetPort: 21
|
|
- name: ftp-passive
|
|
protocol: TCP
|
|
port: 2100
|
|
targetPort: 2100
|
|
- name: ftp-port
|
|
protocol: TCP
|
|
port: 20
|
|
targetPort: 20
|
|
type: LoadBalancer
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ftp-deployment
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: ftp
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ftp
|
|
spec:
|
|
containers:
|
|
- name: ftp
|
|
image: ftp_image
|
|
resources:
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "50m"
|
|
imagePullPolicy: Never
|
|
ports:
|
|
- containerPort: 21
|
|
- containerPort: 2100
|
|
- containerPort: 20
|
|
name: ftp |