diff --git a/incubator/tensorflow-inception/Chart.yaml b/incubator/tensorflow-inception/Chart.yaml index 70b059eca142..823f485b78a1 100755 --- a/incubator/tensorflow-inception/Chart.yaml +++ b/incubator/tensorflow-inception/Chart.yaml @@ -1,11 +1,12 @@ name: tensorflow-inception home: https://github.com/kubernetes/charts -version: 0.1.1 -description: Open source software library for numerical computation using data flow graphs. +version: 0.2.1 +description: Open source software library for numerical computation using data flow + graphs. icon: https://camo.githubusercontent.com/ee91ac3c9f5ad840ebf70b54284498fe0e6ddb92/68747470733a2f2f7777772e74656e736f72666c6f772e6f72672f696d616765732f74665f6c6f676f5f7472616e73702e706e67 sources: - - https://github.com/tensorflow/ - - https://tensorflow.github.io/serving/serving_inception.html +- https://github.com/tensorflow/ +- https://tensorflow.github.io/serving/serving_inception.html maintainers: - - name: Lachlan Evenson - email: lachlan.evenson@gmail.com +- name: Lachlan Evenson + email: lachlan.evenson@gmail.com diff --git a/incubator/tensorflow-inception/templates/NOTES.txt b/incubator/tensorflow-inception/templates/NOTES.txt index 94e481748186..76bdf9a23724 100644 --- a/incubator/tensorflow-inception/templates/NOTES.txt +++ b/incubator/tensorflow-inception/templates/NOTES.txt @@ -2,8 +2,8 @@ Getting Started: 1. Use the inception-client in a container to submit an image from a mounted volume on your system to the service by running these commands in the same shell: **** NOTE: It may take a few minutes for the LoadBalancer IP to be available. **** -**** You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "fullname" . }}' **** - export INCEPTION_SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') +**** You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "tensorflow-inception.fullname" . }}' **** + export INCEPTION_SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "tensorflow-inception.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') echo docker run -v ~/Downloads:/downloads quay.io/lachie83/inception_serving /serving/bazel-bin/tensorflow_serving/example/inception_client --server=$INCEPTION_SERVICE_IP:9090 --image=/downloads/dog.jpg diff --git a/incubator/tensorflow-inception/templates/_helpers.tpl b/incubator/tensorflow-inception/templates/_helpers.tpl index 2a9bbaad2339..880d6b284c97 100644 --- a/incubator/tensorflow-inception/templates/_helpers.tpl +++ b/incubator/tensorflow-inception/templates/_helpers.tpl @@ -2,7 +2,7 @@ {{/* Expand the name of the chart. */}} -{{- define "name" -}} +{{- define "tensorflow-inception.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 24 -}} {{- end -}} @@ -10,7 +10,7 @@ Expand the name of the chart. Create a fully qualified name. We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} -{{- define "fullname" -}} +{{- define "tensorflow-inception.fullname" -}} {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 24 | trimSuffix "-" -}} {{- end -}} diff --git a/incubator/tensorflow-inception/templates/tensorflow-inception.yaml b/incubator/tensorflow-inception/templates/tensorflow-inception.yaml index 6955a160e323..bc2af0394eff 100644 --- a/incubator/tensorflow-inception/templates/tensorflow-inception.yaml +++ b/incubator/tensorflow-inception/templates/tensorflow-inception.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ template "fullname" . }} + name: {{ template "tensorflow-inception.fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} @@ -21,7 +21,7 @@ spec: apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: {{ template "fullname" . }} + name: {{ template "tensorflow-inception.fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} @@ -45,7 +45,7 @@ spec: component: "{{ .Release.Name }}-{{ .Values.Component }}" spec: containers: - - name: {{ template "fullname" . }} + - name: {{ template "tensorflow-inception.fullname" . }} image: "{{ .Values.Image }}:{{ .Values.ImageTag }}" imagePullPolicy: "{{ .Values.ImagePullPolicy }}" command: