Skip to content

Instantly share code, notes, and snippets.

View crobby's full-sized avatar

Chad Roberts crobby

  • SUSE
  • Flushing, Michigan, USA
View GitHub Profile
apiVersion: serving.kserve.io/v1alpha1
kind: Predictor
metadata:
name: example-mnist-predictor
spec:
modelType:
name: sklearn
path: sklearn/mnist-svm.joblib
storage:
s3:
apiVersion: v1
kind: Service
metadata:
name: minio
spec:
ports:
- name: minio-client-port
port: 9000
protocol: TCP
targetPort: 9000
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: odh-gateway
namespace: opendatahub
spec:
selector:
istio: ingressgateway
servers:
- port:
apiVersion: maistra.io/v1
kind: ServiceMeshMemberRoll
metadata:
namespace: istio-system
name: default
spec:
members:
- opendatahub
---
apiVersion: maistra.io/v2
# Copyright 2021 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@crobby
crobby / argohealth.yaml
Last active August 14, 2019 15:30
argo workflow that includes our health predictor model
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: healthpredict
spec:
entrypoint: health-workflow
arguments:
parameters:
- name: inputdata
value: 75:200
apiVersion: machinelearning.seldon.io/v1alpha2
kind: SeldonDeployment
metadata:
labels:
app: seldon
name: ${NAME}
namespace: ${NAMESPACE}
spec:
annotations:
deployment_version: "0.1"
@crobby
crobby / tf_serving.sh
Last active March 8, 2018 20:31 — forked from jarutis/tf_serving.sh
Install Tensorflow Serving on Centos 7 (CPU)
# Java
yum -y install java-1.8.0-openjdk-devel
# Build Esentials (minimal)
yum -y install gcc gcc-c++ kernel-devel make automake autoconf swig git unzip libtool binutils
# Extra Packages for Enterprise Linux (EPEL) (for pip, zeromq3)
yum -y install epel-release
# Python
@crobby
crobby / jetty9.3.20.patch
Created June 9, 2017 14:33
patch to update jetty
Index: pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pom.xml (revision afab8557b069dff233bc187ddad46d071eeb6137)
+++ pom.xml (revision )
@@ -136,7 +136,7 @@
<derby.version>10.12.1.1</derby.version>
<parquet.version>1.8.1</parquet.version>
@crobby
crobby / quickstart-no-route.sh
Last active January 16, 2017 20:26
Fast way to get oshinko up and running on a basic openshift single node cluster
# Start up an OpenShift Origin cluster locally
oc cluster up
# Authorize Oshinko service account to write to the OpenShift API
oc create sa oshinko
oc policy add-role-to-user edit -z oshinko
# Launch Oshinko in the current project
oc new-app -f ui-template-no-route.yaml
# Wait for your app to come up, then find the pod name where oshinko-webui is running
# then execute oc port-forward <pod name> <local port>:8080