From f6c4fd2096cd4e0e526c11382ac734849e07332d Mon Sep 17 00:00:00 2001
From: Frank Sauerburger <frank@sauerburger.com>
Date: Sun, 28 Aug 2022 13:34:35 +0200
Subject: [PATCH] Add mlflow-kubeserve deployment

Closes #2
---
 deployment.yaml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 deployment.yaml

diff --git a/deployment.yaml b/deployment.yaml
new file mode 100644
index 0000000..319a4ef
--- /dev/null
+++ b/deployment.yaml
@@ -0,0 +1,52 @@
+apiVersion: kubeserve.sauerburger.dev/v1alpha1
+kind: ModelDeployment
+metadata:
+  name: movie-recommender
+spec:
+  model: models:/movie-recommender/1
+  s3:
+    url: https://s3.ds.sit-servers.net/
+    secretName: s3apikey
+  registry:
+    url: https://mlflow.ds.sit-servers.net/
+    secretName: mlflowbasicauth
+  docker:
+    imageBaseName: gitlab.sauerburger.com:5049/frank/movie-recommender
+    secretName: movie-recommender-token
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: movie-recommender-service
+spec:
+  ports:
+  - port: 8080
+    protocol: TCP
+    targetPort: 8080
+  selector:
+    app: kubeserve
+    modeldeployment_cr: movie-recommender
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  annotations:
+    cert-manager.io/cluster-issuer: "letsencrypt-production"
+    kubernetes.io/ingress.class: nginx
+  name: "movie-recommender"
+spec:
+  rules:
+  - host: "movie-recommender.ds.sit-servers.net"
+    http:
+      paths:
+      - path: "/invocations"
+        pathType: Prefix
+        backend:
+          service:
+            name: "movie-recommender-service"
+            port:
+              number: 8080
+  tls:
+  - hosts:
+    - "movie-recommender.ds.sit-servers.net"
+    secretName: movie-recommender-tls-secret
-- 
GitLab