summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md7
-rw-r--r--kubernetes/server.yml54
2 files changed, 56 insertions, 5 deletions
diff --git a/README.md b/README.md
index d4470e1c..87963c8f 100644
--- a/README.md
+++ b/README.md
@@ -11,12 +11,9 @@ A digital version of the [7 Wonders board game](https://en.wikipedia.org/wiki/7_
## Try it!
-A staging version of the app is running [on heroku](https://seven-wonders-online.herokuapp.com/).
-Heroku's free plan shuts down servers when not used for 30 minutes, so please allow for a bit of delay (~30s) if you're
- trying it on a cold start.
+You can play it for free on http://seven-wonders.hildan.org.
-:construction: It is still under development, so the staging server is unstable as the CI/CD pipeline deploys the
- new app on it after every successful build of the master branch.
+:construction: The game is still under development.
It is therefore possible that you experience a server restart if I just pushed some new changes.
### Locally
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