summaryrefslogtreecommitdiff
path: root/kubernetes/server.yml
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-06 20:31:49 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-06 20:43:24 +0100
commit579d9d76ce0ec0128909666993551d0f10775bd6 (patch)
tree82c3dd3175b529f2c98f179d1d1bbdc26b24e065 /kubernetes/server.yml
parentAdd auto-game with bots only (diff)
downloadseven-wonders-579d9d76ce0ec0128909666993551d0f10775bd6.tar.gz
seven-wonders-579d9d76ce0ec0128909666993551d0f10775bd6.tar.bz2
seven-wonders-579d9d76ce0ec0128909666993551d0f10775bd6.zip
Add kubernetes config (deployed on digital ocean)
Resolves: https://github.com/joffrey-bion/seven-wonders/issues/54
Diffstat (limited to 'kubernetes/server.yml')
-rw-r--r--kubernetes/server.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/kubernetes/server.yml b/kubernetes/server.yml
new file mode 100644
index 00000000..90e58311
--- /dev/null
+++ b/kubernetes/server.yml
@@ -0,0 +1,54 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: seven-wonders
+spec:
+ selector:
+ matchLabels:
+ app: seven-wonders
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: seven-wonders
+ spec:
+ containers:
+ - name: seven-wonders-server
+ image: hildan/seven-wonders-server:latest
+ ports:
+ - containerPort: 80
+
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: seven-wonders
+ labels:
+ app: seven-wonders
+spec:
+ ports:
+ - name: 80-80
+ port: 80
+ protocol: TCP
+ targetPort: 80
+ selector:
+ app: seven-wonders
+ type: ClusterIP
+
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: seven-wonders-ingress
+spec:
+ rules:
+ - host: "seven-wonders.hildan.org"
+ http:
+ paths:
+ - path: "/"
+ pathType: Prefix
+ backend:
+ service:
+ name: seven-wonders
+ port:
+ number: 80
bgstack15