summary refs log tree commit diff
path: root/infra
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-19T02·10+0100
committerVincent Ambo <tazjin@google.com>2019-08-19T02·10+0100
commit28a9c01d3633b8f078f65d46d74ca6fe10b06173 (patch)
tree4ce0fcd10665a0f99d3be56b9724b0da06265ea3 /infra
parenta4ef595fef4d575e4618128325c3f3f7671bbc32 (diff)
feat(infra/k8s): Add in-cluster tazblog deployment via Nixery r/40
First deployment actually using a Nixery image and `gitHEAD`.

This does not actually serve a working blog for various reasons. The
current storage mechanism (acid-state) isn't really appropriate
anymore and I'll need to change that soon.
Diffstat (limited to 'infra')
-rw-r--r--infra/kubernetes/primary-cluster.yaml1
-rw-r--r--infra/kubernetes/tazblog/config.yaml21
2 files changed, 22 insertions, 0 deletions
diff --git a/infra/kubernetes/primary-cluster.yaml b/infra/kubernetes/primary-cluster.yaml
index b3298d19e6bf..c8a6423e341c 100644
--- a/infra/kubernetes/primary-cluster.yaml
+++ b/infra/kubernetes/primary-cluster.yaml
@@ -10,3 +10,4 @@ include:
       bucket: tazjins-data
       account: nixery@tazjins-infrastructure.iam.gserviceaccount.com
       repo: ssh://source.developers.google.com:2022/p/tazjins-infrastructure/r/monorepo
+  - name: tazblog
diff --git a/infra/kubernetes/tazblog/config.yaml b/infra/kubernetes/tazblog/config.yaml
new file mode 100644
index 000000000000..dee75cb995b7
--- /dev/null
+++ b/infra/kubernetes/tazblog/config.yaml
@@ -0,0 +1,21 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: tazblog
+  labels:
+    app: tazblog
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: tazblog
+  template:
+    metadata:
+      labels:
+        app: tazblog
+    spec:
+      containers:
+      - name: tazblog
+        image: nixery.local/shell/tazjin.blog:{{ gitHEAD }}
+        command: [ "tazblog" ]