kfserving
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
| Name | Description | Default |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
imagePullSecrets | Docker registry secret names as an array | [] |
nameOverride | Partially override kfserving.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | Fully override kfserving.fullname template with a string | nil |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
Controller parameters
| Name | Description | Default |
|---|---|---|
controller.replicaCount | Number of replicas | 1 |
controller.image.repository | Image name | kfserving/kfserving-controller |
controller.image.tag | Image tag | v0.6.1 |
controller.image.pullPolicy | Image pull policy | IfNotPresent |
controller.pdb.create | Specifies whether a pod disruption budget should be created | false |
controller.pdb.minAvailable | Minimum number/percentage of pods that should remain scheduled | 1 |
controller.pdb.maxUnavailable | Maximum number/percentage of pods that may be made unavailable | nil |
controller.serviceAccount.create | Specify whether to create a ServiceAccount | true |
controller.serviceAccount.annotations | ServiceAccount annotations | {} |
controller.serviceAccount.name | The name of the ServiceAccount to create | Generated using the kfserving.controller.fullname template |
controller.podAnnotations | Additional pod annotations | {} |
controller.podLabels | Additional pod labels | {} |
controller.podSecurityContext | Pod security context | {} |
controller.priorityClassName | Priority class name | nil |
controller.securityContext | Container security context | {} |
controller.livenessProbe.enabled | Enable liveness probe | true |
controller.livenessProbe.initialDelaySeconds | Delay before the liveness probe is initiated | 0 |
controller.livenessProbe.periodSeconds | How often to perform the liveness probe | 10 |
controller.livenessProbe.timeoutSeconds | When the liveness probe times out | 1 |
controller.livenessProbe.failureThreshold | Minimum consecutive failures for the liveness probe to be considered failed after having succeeded | 3 |
controller.livenessProbe.successThreshold | Minimum consecutive successes for the liveness probe to be considered successful after having failed | 1 |
controller.readinessProbe.enabled | Enable readiness probe | true |
controller.readinessProbe.initialDelaySeconds | Delay before the readiness probe is initiated | 0 |
controller.readinessProbe.periodSeconds | How often to perform the readiness probe | 10 |
controller.readinessProbe.timeoutSeconds | When the readiness probe times out | 1 |
controller.readinessProbe.failureThreshold | Minimum consecutive failures for the readiness probe to be considered failed after having succeeded | 3 |
controller.readinessProbe.successThreshold | Minimum consecutive successes for the readiness probe to be considered successful after having failed | 1 |
controller.service.annotations | Service annotations | {} |
controller.service.type | Service type | ClusterIP |
controller.service.clusterIP | Static cluster IP address or None for headless service when service type is ClusterIP | nil |
controller.service.loadBalancerIP | Static load balancer IP address when service type is LoadBalancer | nil |
controller.service.loadBalancerSourceRanges | Source IP address ranges when service type is LoadBalancer | nil |
controller.service.externalTrafficPolicy | External traffic routing policy when service type is LoadBalancer or NodePort | Cluster |
controller.service.port | Service port | 9443 |
controller.service.nodePort | Service node port when service type is LoadBalancer or NodePort | nil |
controller.resources | CPU/Memory resource requests/limits | {} |
controller.nodeSelector | Node labels for pod assignment | {} |
controller.tolerations | Tolerations for pod assignment | [] |
controller.affinity | Map of node/pod affinities | {} |
controller.extraArgs | Additional container arguments | {} |
controller.extraEnvVars | Additional container environment variables | [] |
controller.extraEnvVarsCM | Name of existing ConfigMap containing additional container environment variables | nil |
controller.extraEnvVarsSecret | Name of existing Secret containing additional container environment variables | nil |
controller.metrics.service.annotations | Metrics service annotations | {} |
controller.metrics.service.type | Metrics service type | ClusterIP |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkfserving is pinned at v1.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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