From d0800197c4c19c3b02b14fb9854cde93bd8f1d72 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 9 Feb 2020 01:30:56 +0000 Subject: feat(ops/infra/k8s): Add website deployment configuration --- ops/infra/kubernetes/website/config.yaml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ops/infra/kubernetes/website/config.yaml diff --git a/ops/infra/kubernetes/website/config.yaml b/ops/infra/kubernetes/website/config.yaml new file mode 100644 index 0000000000..d06dfe3db3 --- /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 -- cgit 1.4.1