tensorflow-resnet

by joaquinito2051

Helm chartv0.1.2App 1.13.0

Open-source software library serving the ResNet machine learning model.

About this chart

TensorFlow Serving ResNet

TensorFlow Serving is an open-source software library for serving machine learning models. This chart will specifically serve the ResNet model with already trained data.

TL;DR;

$ helm install <helm-repo>/tensorflow-resnet

$ helm install bitnami/tensorflow-resnet

Introduction

This chart bootstraps a TensorFlow Serving ResNet deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.4+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure

Get this chart

Download the latest release of the chart from the releases page.

Alternatively, clone the repo if you wish to use the development snapshot:

$ git clone https://github.com/bitnami/charts.git

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/tensorflow-resnet

$ helm install --name my-release bitnami/tensorflow-resnet The command deploys Tensorflow Serving ResNet model on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

You can check your releases with:

$ helm list

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the TensorFlow ResNet chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
server.image.registryTensorFlow Serving image registrydocker.io
server.image.repositoryTensorFlow Serving Image namebitnami/tensorflow-serving
server.image.tagTensorFlow Serving Image tag{VERSION}
server.image.pullPolicyTensorFlow Serving image pull policyAlways if imageTag is latest, else IfNotPresent
server.image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
replicaCountDesired number of pods1
server.portTensorflow server port8500
client.image.registryTensorFlow ResNet image registrydocker.io
client.image.repositoryTensorFlow ResNet Image namebitnami/tensorflow-resnet
client.image.tagTensorFlow ResNet Image tag{VERSION}
client.image.pullPolicyTensorFlow ResNet image pull policyAlways if imageTag is latest, else IfNotPresent
client.image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
imagePullPolicyImage pull policyAlways if image tag is latest, else IfNotPresent
podAnnotationsPod annotations{}
livenessProbe.enabledWould you like a livessProbed to be enabledtrue
livenessProbe.initialDelaySecondsDelay before liveness probe is initiated30
livenessProbe.periodSecondsHow often to perform the probe5
livenessProbe.timeoutSecondsWhen the probe times out5
livenessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded6
livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed1
readinessProbe.enabledWould you like a readinessProbe to be enabledtrue
readinessProbe.initialDelaySecondsDelay before liveness probe is initiated15
readinessProbe.periodSecondsHow often to perform the probe5
readinessProbe.timeoutSecondsWhen the probe times out5
readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded6
readinessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed1
metrics.enabledStart a side-car Tensorflow prometheus exporterfalse
metrics.image.registryTensorflow exporter image registrydocker.io
metrics.image.repositoryTensorflow exporter image nameynqa/tensorflow-serving-exporter
metrics.image.tagTensorflow exporter image taglatest
metrics.image.pullPolicyImage pull policyIfNotPresent
metrics.image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
metrics.portTensorFlow Exporter port9118
metrics.livenessProbe.enabledWould you like a livessProbed to be enabled (metrics)true
metrics.livenessProbe.initialDelaySecondsDelay before liveness probe is initiated (metrics)30
metrics.livenessProbe.periodSecondsHow often to perform the probe (metrics)5
metrics.livenessProbe.timeoutSecondsWhen the probe times out (metrics)5
metrics.livenessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded (metrics)6
metrics.livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (metrics)1
metrics.readinessProbe.enabledWould you like a readinessProbe to be enabled (metrics)true
metrics.readinessProbe.initialDelaySecondsDelay before liveness probe is initiated (metrics)15
metrics.readinessProbe.periodSecondsHow often to perform the probe (metrics)5
metrics.readinessProbe.timeoutSecondsWhen the probe times out (metrics)5
metrics.readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded (metrics)6
metrics.readinessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (metrics)1
metrics.podAnnotationsAdditional annotations for Metrics exporter pod{prometheus.io/scrape: "true", prometheus.io/port: "9118"}
metrics.resourcesExporter resource requests/limitMemory: 256Mi, CPU: 100m

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release <helm-repo>/tensorflow-resnet --set imagePullPolicy=Always

$ helm install --name my-release bitnami/tensorflow-resnet --set imagePullPolicy=Always Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml <helm-repo>/tensorflow-resnet

$ helm install --name my-release -f values.yaml bitnami/tensorflow-resnet

Tip: You can use the default values.yaml

Deploy tensorflow-resnet with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tensorflow-resnet 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 charttensorflow-resnet is pinned at v0.1.2 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