diff options
author | Vincent Ambo <tazjin@gmail.com> | 2016-09-21T00·27+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2016-09-21T00·29+0200 |
commit | a02148d8325b3a9252c49235cf8592fc42c0df73 (patch) | |
tree | 6d3e9775651a657015227d85a7be9faffd965678 | |
parent | ef8846eb004377a4d7fe3f7d589e71035a8017dd (diff) |
[tazblog] Add tazblog deployment & svc
-rw-r--r-- | tazblog/tazblog-db.yaml | 36 | ||||
-rw-r--r-- | tazblog/tazblog.yaml | 33 |
2 files changed, 69 insertions, 0 deletions
diff --git a/tazblog/tazblog-db.yaml b/tazblog/tazblog-db.yaml new file mode 100644 index 000000000000..b9d8fb1040f5 --- /dev/null +++ b/tazblog/tazblog-db.yaml @@ -0,0 +1,36 @@ +--- +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: tazblog-db +spec: + template: + metadata: + labels: + app: tazblog-db + spec: + containers: + - image: eu.gcr.io/composite-watch-759/tazblog-haskell:f33723a + name: tazblog-db + command: ["tazblog-db"] + volumeMounts: + - name: tazblog-state + mountPath: /var/tazblog + volumes: + - name: tazblog-state + gcePersistentDisk: + pdName: tazblog-state + fsType: ext4 +--- +apiVersion: v1 +kind: Service +metadata: + name: tazblog-db + labels: + app: tazblog-db +spec: + selector: + app: tazblog-db + ports: + - port: 8070 + name: tazblog-db diff --git a/tazblog/tazblog.yaml b/tazblog/tazblog.yaml new file mode 100644 index 000000000000..35275daddd22 --- /dev/null +++ b/tazblog/tazblog.yaml @@ -0,0 +1,33 @@ +--- +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: tazblog +spec: + replicas: 2 + template: + metadata: + labels: + app: tazblog + spec: + containers: + - image: eu.gcr.io/composite-watch-759/tazblog-haskell:f33723a + imagePullPolicy: Always + name: tazblog + command: ["tazblog", "--dbHost", "tazblog-db.default.svc.cluster.local"] +--- +apiVersion: v1 +kind: Service +metadata: + name: tazblog-priv + labels: + app: tazblog + annotations: + acme/certificate: "www.tazj.in" +spec: + selector: + app: tazblog + ports: + - port: 80 + targetPort: 8000 + name: tazblog-http |