about summary refs log tree commit diff
path: root/bundles/langtool
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/langtool')
-rw-r--r--bundles/langtool/files/kube.yaml24
-rw-r--r--bundles/langtool/items.py5
-rw-r--r--bundles/langtool/metadata.py5
3 files changed, 34 insertions, 0 deletions
diff --git a/bundles/langtool/files/kube.yaml b/bundles/langtool/files/kube.yaml
new file mode 100644
index 0000000..f4f2fed
--- /dev/null
+++ b/bundles/langtool/files/kube.yaml
@@ -0,0 +1,24 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  name: langtool
+  labels:
+    traefik.enable: true
+    traefik.http.routers.langtool.tls: true
+    traefik.http.routers.langtool.tls.certresolver: le
+    traefik.http.routers.langtool.entrypoints: http,https
+    traefik.http.routers.langtool.rule: Host(`langtool.gzr.im`)
+    traefik.http.routers.langtool.service: langtool
+    traefik.http.routers.langtool.middlewares: tls-redirect@file
+    traefik.http.services.langtool.loadbalancer.server.port: 8010
+    prometheus.scrape.enable: false
+spec:
+  restartPolicy: Never
+  dnsPolicy: Default
+  imagePullPolicy: Always
+  containers:
+  - name: langtool
+    image: docker.io/erikvl87/languagetool:latest
+    ports:
+    - containerPort: 8010
+      protocol: TCP
diff --git a/bundles/langtool/items.py b/bundles/langtool/items.py
new file mode 100644
index 0000000..78d8a06
--- /dev/null
+++ b/bundles/langtool/items.py
@@ -0,0 +1,5 @@
+files = {
+    "/etc/deployments/langtool/kube.yaml": {
+        "triggers": {"svc_s6rc:langtool:restart"},
+    },
+}
diff --git a/bundles/langtool/metadata.py b/bundles/langtool/metadata.py
new file mode 100644
index 0000000..3509857
--- /dev/null
+++ b/bundles/langtool/metadata.py
@@ -0,0 +1,5 @@
+defaults = {
+    "containers": {
+        "langtool": {},
+    },
+}