kfserving

by sebastien-prudhomme

Helm chartv1.3.1App 0.6.1MITVerified publisher

Highly scalable and standards based Model Inference Platform on Kubernetes

About this chart

KFServing

KFServing is a highly scalable and standards based Model Inference Platform on Kubernetes.

DISCLAIMER: This is an unofficial chart not supported by KFServing authors.

TL;DR;

$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/kfserving

Introduction

This chart bootstraps a KFServing deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes >= 1.19 and <= 1.21
  • cert-manager >= 1.3 (you can use the cert-manager/cert-manager chart)
  • Knative Serving >= 0.22 with Istio network layer
  • Helm >= 3.1

Installing

Install the chart using:

$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/kfserving

These commands deploy KFServing on the Kubernetes cluster in the default configuration and with the release name my-release. The deployment configuration can be customized by specifying the customization parameters with the helm install command using the --values or --set arguments. Find more information in the configuration section of this document.

Upgrading

Upgrade the chart deployment using:

$ helm upgrade my-release cowboysysop/kfserving

The command upgrades the existing my-release deployment with the most latest release of the chart.

TIP: Use helm repo update to update information on available charts in the chart repositories.

Uninstalling

Uninstall the my-release deployment using:

$ helm uninstall my-release

The command deletes the release named my-release and frees all the kubernetes resources associated with the release.

TIP: Specify the --purge argument to the above command to remove the release from the store and make its name free for later use.

Optionally, delete the custom resource definitions created by the chart using:

WARNING: It will also try to delete all instances of the custom resource definitions.

$ kubectl delete crd inferenceservices.serving.kubeflow.org
$ kubectl delete crd trainedmodels.serving.kubeflow.org

Configuration

The following tables lists all the configurable parameters expose by the chart and their default values.

Common parameters

NameDescriptionDefault
kubeVersionOverride Kubernetes version""
imagePullSecretsDocker registry secret names as an array[]
nameOverridePartially override kfserving.fullname template with a string (will prepend the release name)nil
fullnameOverrideFully override kfserving.fullname template with a stringnil
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

Controller parameters

NameDescriptionDefault
controller.replicaCountNumber of replicas1
controller.image.repositoryImage namekfserving/kfserving-controller
controller.image.tagImage tagv0.6.1
controller.image.pullPolicyImage pull policyIfNotPresent
controller.pdb.createSpecifies whether a pod disruption budget should be createdfalse
controller.pdb.minAvailableMinimum number/percentage of pods that should remain scheduled1
controller.pdb.maxUnavailableMaximum number/percentage of pods that may be made unavailablenil
controller.serviceAccount.createSpecify whether to create a ServiceAccounttrue
controller.serviceAccount.annotationsServiceAccount annotations{}
controller.serviceAccount.nameThe name of the ServiceAccount to createGenerated using the kfserving.controller.fullname template
controller.podAnnotationsAdditional pod annotations{}
controller.podLabelsAdditional pod labels{}
controller.podSecurityContextPod security context{}
controller.priorityClassNamePriority class namenil
controller.securityContextContainer security context{}
controller.livenessProbe.enabledEnable liveness probetrue
controller.livenessProbe.initialDelaySecondsDelay before the liveness probe is initiated0
controller.livenessProbe.periodSecondsHow often to perform the liveness probe10
controller.livenessProbe.timeoutSecondsWhen the liveness probe times out1
controller.livenessProbe.failureThresholdMinimum consecutive failures for the liveness probe to be considered failed after having succeeded3
controller.livenessProbe.successThresholdMinimum consecutive successes for the liveness probe to be considered successful after having failed1
controller.readinessProbe.enabledEnable readiness probetrue
controller.readinessProbe.initialDelaySecondsDelay before the readiness probe is initiated0
controller.readinessProbe.periodSecondsHow often to perform the readiness probe10
controller.readinessProbe.timeoutSecondsWhen the readiness probe times out1
controller.readinessProbe.failureThresholdMinimum consecutive failures for the readiness probe to be considered failed after having succeeded3
controller.readinessProbe.successThresholdMinimum consecutive successes for the readiness probe to be considered successful after having failed1
controller.service.annotationsService annotations{}
controller.service.typeService typeClusterIP
controller.service.clusterIPStatic cluster IP address or None for headless service when service type is ClusterIPnil
controller.service.loadBalancerIPStatic load balancer IP address when service type is LoadBalancernil
controller.service.loadBalancerSourceRangesSource IP address ranges when service type is LoadBalancernil
controller.service.externalTrafficPolicyExternal traffic routing policy when service type is LoadBalancer or NodePortCluster
controller.service.portService port9443
controller.service.nodePortService node port when service type is LoadBalancer or NodePortnil
controller.resourcesCPU/Memory resource requests/limits{}
controller.nodeSelectorNode labels for pod assignment{}
controller.tolerationsTolerations for pod assignment[]
controller.affinityMap of node/pod affinities{}
controller.extraArgsAdditional container arguments{}
controller.extraEnvVarsAdditional container environment variables[]
controller.extraEnvVarsCMName of existing ConfigMap containing additional container environment variablesnil
controller.extraEnvVarsSecretName of existing Secret containing additional container environment variablesnil
controller.metrics.service.annotationsMetrics service annotations{}
controller.metrics.service.typeMetrics service typeClusterIP
controller.metrics.service.clusterIP

Deploy kfserving with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kfserving on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkfserving is pinned at v1.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply