From 3593bfc3947793fe8cbe32b02bf78ea7e1d9ca3a Mon Sep 17 00:00:00 2001
From: Byungheong Jeong <byungheon.jeong@gmail.com>
Date: Sun, 27 Oct 2019 08:49:35 -0700
Subject: [PATCH] Deployment of Keras on Jupyter Notebook

---
 kerasDeloyment.yaml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 kerasDeloyment.yaml

diff --git a/kerasDeloyment.yaml b/kerasDeloyment.yaml
new file mode 100644
index 0000000..6a52d7e
--- /dev/null
+++ b/kerasDeloyment.yaml
@@ -0,0 +1,38 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: keras
+  namespace: digits
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      k8s-app: keras
+  template:
+    metadata:
+      labels:
+        k8s-app: keras
+    spec:
+      tolerations:
+      - key: "region"
+        operator: "Equal"
+        value: "allow"
+        effect: "NoSchedule"
+      containers:
+      - name: keras
+        image: gitlab-registry.nautilus.optiputer.net/byungheon-jeong/keras-smoke-detection
+        securityContext:
+          capabilities:
+            add:
+              - NET_ADMIN
+        command: ["/bin/sh", "-c"]
+        args: ["sleep infinity"]
+        resources:
+          limits:
+            nvidia.com/gpu: 1
+            memory: "64Gi"
+            cpu: "8"
+          requests:
+            memory: "32Gi"
+            cpu: "4"
+
-- 
GitLab