aboutsummaryrefslogtreecommitdiff
path: root/srcs/ftps/ftps.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/ftps/ftps.yaml')
-rw-r--r--srcs/ftps/ftps.yaml43
1 files changed, 43 insertions, 0 deletions
diff --git a/srcs/ftps/ftps.yaml b/srcs/ftps/ftps.yaml
new file mode 100644
index 0000000..03a8b97
--- /dev/null
+++ b/srcs/ftps/ftps.yaml
@@ -0,0 +1,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