about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-02-09T01·30+0000
committerVincent Ambo <tazjin@google.com>2020-02-09T01·30+0000
commitd0800197c4c19c3b02b14fb9854cde93bd8f1d72 (patch)
treeda45b1d4b9ded7830620292eb28f3bc3756d73ba
parent87967d5be31e25244ac8387ef17f2ab98d3b698c (diff)
feat(ops/infra/k8s): Add website deployment configuration r/503
-rw-r--r--ops/infra/kubernetes/website/config.yaml37
1 files changed, 37 insertions, 0 deletions
diff --git a/ops/infra/kubernetes/website/config.yaml b/ops/infra/kubernetes/website/config.yaml
new file mode 100644
index 000000000000..d06dfe3db317
--- /dev/null
+++ b/ops/infra/kubernetes/website/config.yaml
@@ -0,0 +1,37 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: website
+  labels:
+    app: website
+spec:
+  replicas: 2
+  selector:
+    matchLabels:
+      app: website
+  template:
+    metadata:
+      labels:
+        app: website
+    spec:
+      containers:
+      - name: website
+        image: nixery.local/shell/web.homepage:{{ gitHEAD }}
+        env:
+          - name: CONTAINER_SETUP
+            value: "true"
+        command: [ "homepage" ]
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: website
+spec:
+  type: NodePort
+  selector:
+    app: website
+  ports:
+    - protocol: TCP
+      port: 8080
+      targetPort: 8080