about summary refs log tree commit diff
path: root/infra/kubernetes/tazblog
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-27T11·44+0100
committerVincent Ambo <tazjin@google.com>2019-08-27T11·44+0100
commita58af3e371591ed7a7015350512ca46accbf37d6 (patch)
tree23ba45d54a9ef90e75fbe1847a513a421f04ef17 /infra/kubernetes/tazblog
parentcae99692de34a9d7600adb2fa7bb88436a332ff6 (diff)
feat(k8s): Configure HTTPS ingress for the blog r/67
Uses Google-managed certificates and an Ingress resource to set up an
HTTPS load-balancer.

This probably won't be the final version as the GKE Ingress is very
limited and can not do things like redirect URLs, which I need to
decommission the old setup.
Diffstat (limited to 'infra/kubernetes/tazblog')
-rw-r--r--infra/kubernetes/tazblog/config.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/infra/kubernetes/tazblog/config.yaml b/infra/kubernetes/tazblog/config.yaml
index 1f9daa35fd33..1ab6e9d2b421 100644
--- a/infra/kubernetes/tazblog/config.yaml
+++ b/infra/kubernetes/tazblog/config.yaml
@@ -19,3 +19,16 @@ spec:
       - name: tazblog
         image: nixery.local/shell/tazjin.blog:{{ gitHEAD }}
         command: [ "tazblog" ]
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: tazblog
+spec:
+  type: NodePort
+  selector:
+    app: tazblog
+  ports:
+    - protocol: TCP
+      port: 8000
+      targetPort: 8000