Skip to content

Instantly share code, notes, and snippets.

View israel-hdez's full-sized avatar

Edgar Hernández israel-hdez

  • Red Hat
  • México
View GitHub Profile

Introduction

This guide describes the steps needed to generate a build and deploy/install the needed components that add authorization capabilities to the ODH KServe stack.

The authorization capabilities are implemented in two pull requests:

@israel-hdez
israel-hdez / kserve-sample-model-test.sh
Created November 10, 2023 05:14
KServe basic test
#!/usr/bin/env bash
# Deploy to new namespace
oc new-project kserve-test
# Create a ServingRuntime
curl -s https://raw.githubusercontent.com/opendatahub-io/kserve/master/config/runtimes/kserve-sklearnserver.yaml | \
sed 's/ClusterServingRuntime/ServingRuntime/' | \
sed "s|kserve-sklearnserver:replace|docker.io/kserve/sklearnserver:latest|" | \
oc apply -f -
@israel-hdez
israel-hdez / kserve-build-configs.yaml
Last active November 7, 2023 19:48
KServe OpenShift BuildConfigs
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: kserve-controller-bc
spec:
source:
git:
uri: https://github.com/opendatahub-io/kserve.git
ref: master
contextDir: "."
@israel-hdez
israel-hdez / Containerfile
Last active August 22, 2023 20:37
Build a container that has OpenVino and a built-in model - this is based on OpenVINO quickstart
FROM quay.io/opendatahub/openvino_model_server:2022.3-release
USER root
RUN mkdir /models && chown ovms:ovms /models
USER ovms
RUN curl --create-dirs \
https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/face-detection-retail-0004/FP32/face-detection-retail-0004.xml \
https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/face-detection-retail-0004/FP32/face-detection-retail-0004.bin \
-o /models/1/face-detection-retail-0004.xml \
@israel-hdez
israel-hdez / install-splitted-bookinfo.bash
Last active November 3, 2023 20:01
Istio multi-cluster development setup
#!/bin/bash
set -e
: ${ISTIO_DIR:="$HOME/apps/istio-1.9.0"}
ISTIOCTL=$ISTIO_DIR/bin/istioctl
: ${BOOKINFO_NS:=bookinfo}
: ${CTX1:=kukulcan}
apiVersion: apps/v1
kind: Deployment
metadata:
name: workload-a
labels:
app: workload-a
version: v1
spec:
replicas: 1
selector: