aboutsummaryrefslogtreecommitdiff
path: root/danneri/futar-deployment.yml
diff options
context:
space:
mode:
Diffstat (limited to 'danneri/futar-deployment.yml')
-rw-r--r--danneri/futar-deployment.yml60
1 files changed, 60 insertions, 0 deletions
diff --git a/danneri/futar-deployment.yml b/danneri/futar-deployment.yml
new file mode 100644
index 0000000..00a07ca
--- /dev/null
+++ b/danneri/futar-deployment.yml
@@ -0,0 +1,60 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: futar-deployment
+ labels:
+ app: futar
+spec:
+ selector:
+ matchLabels:
+ app: futar
+ replicas: 2
+ template:
+ metadata:
+ labels:
+ app: futar
+ spec:
+ containers:
+ - name: futar
+ image: ghcr.io/trygvis/futar:main
+ ports:
+ - containerPort: 8080
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: futar-np
+spec:
+ selector:
+ app: futar
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 8080
+ nodePort: 30000
+ type: NodePort
+
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: futar
+spec:
+ selector:
+ app: futar
+ ports:
+ - protocol: TCP
+ port: 8080
+
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: futar-lb
+spec:
+ selector:
+ app: futar
+ type: LoadBalancer
+ ports:
+ - protocol: TCP
+ port: 8080