aboutsummaryrefslogtreecommitdiff
path: root/srcs/ftps/ftps.yaml
blob: a02ee1f54ebda7f7f7ab9a2e79d5284973313204 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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: ftps-service
          imagePullPolicy: Never
          name: cacharle-ftps-container

---

apiVersion: v1
kind: Service
metadata:
  name: ftps-service
  labels:
    app: ftps
  annotations:
    metallb.universe.tf/allow-shared-ip: shared
spec:
  type: LoadBalancer
  ports:
    - name: ftps
      targetPort: 21
      port: 21
    - name: ftps-data0
      targetPort: 21000
      port: 21000
    - name: ftps-data1
      targetPort: 21001
      port: 21001
    - name: ftps-data2
      targetPort: 21002
      port: 21002
    - name: ftps-data3
      targetPort: 21003
      port: 21003
    - name: ftps-data4
      targetPort: 21004
      port: 21004
    - name: ftps-data5
      targetPort: 21005
      port: 21005
  selector:
    app: ftps