blob: 03a8b972adb2b6ba042d3142cdc138b596ec1c8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftps-deployment
labels:
app: ftps
spec:
selector:
matchLabels:
app: ftps
replicas: 1
template:
metadata:
labels:
app: ftps
spec:
containers:
- image: cacharle-ftps
imagePullPolicy: Never
name: cacharle-ftps-container
ports:
- containerPort: 21
hostPort: 9021 # change me
- containerPort: 21000
hostPort: 21000
---
apiVersion: v1
kind: Service
metadata:
name: ftps-service
spec:
type: LoadBalancer
ports:
- name: ftps
targetPort: 21
port: 9021
- name: passive1
targetPort: 21000
port: 21000
selector:
app: ftps
|