Skip to content

Commit

Permalink
de-capitalize all the variables of tensorflow-inception (helm#4526)
Browse files Browse the repository at this point in the history
bump version to 0.3.0
  • Loading branch information
cheyang authored and Jean-Noël Vouilloz committed May 15, 2018
1 parent e96bf22 commit 555131b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion incubator/tensorflow-inception/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tensorflow-inception
home: https://github.com/kubernetes/charts
version: 0.2.3
version: 0.3.0
appVersion: 1.4.0
description: Open source software library for numerical computation using data flow
graphs.
Expand Down
14 changes: 7 additions & 7 deletions incubator/tensorflow-inception/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ The following table lists the configurable parameters of the TensorFlow inceptio

| Parameter | Description | Default |
| ----------------------- | ---------------------------------- | ---------------------------------------------------------- |
| `Image` | Container image name | `quay.io/lachie83/inception_serving` |
| `ImageTag` | Container image tag | `latest` |
| `Replicas` | k8s deployment replicas | `1` |
| `Component` | k8s selector key | `tensorflow-inception` |
| `Resources` | Set the resource to be allocated and allowed for the Pods | `{}` |
| `ServicePort` | k8s service port | `9090` |
| `ContainerPort` | Container listening port | `9090` |
| `image` | Container image name | `quay.io/lachie83/inception_serving` |
| `imageTag` | Container image tag | `latest` |
| `replicas` | k8s deployment replicas | `1` |
| `component` | k8s selector key | `tensorflow-inception` |
| `resources` | Set the resource to be allocated and allowed for the Pods | `{}` |
| `servicePort` | k8s service port | `9090` |
| `containerPort` | Container listening port | `9090` |

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

Expand Down
30 changes: 15 additions & 15 deletions incubator/tensorflow-inception/templates/tensorflow-inception.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ metadata:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Component }}"
component: "{{ .Release.Name }}-{{ .Values.component }}"
annotations:
"helm.sh/created": {{ .Release.Time.Seconds | quote }}
spec:
ports:
- port: {{ .Values.ServicePort }}
targetPort: {{ .Values.ContainerPort }}
- port: {{ .Values.servicePort }}
targetPort: {{ .Values.containerPort }}
selector:
component: "{{ .Release.Name }}-{{ .Values.Component }}"
type: {{ .Values.ServiceType }}
component: "{{ .Release.Name }}-{{ .Values.component }}"
type: {{ .Values.serviceType }}

---
apiVersion: extensions/v1beta1
Expand All @@ -26,39 +26,39 @@ metadata:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Component }}"
component: "{{ .Release.Name }}-{{ .Values.component }}"
annotations:
"helm.sh/created": {{ .Release.Time.Seconds | quote }}
spec:
replicas: {{ default 1 .Values.Replicas }}
replicas: {{ default 1 .Values.replicas }}
strategy:
type: RollingUpdate
selector:
matchLabels:
component: "{{ .Release.Name }}-{{ .Values.Component }}"
component: "{{ .Release.Name }}-{{ .Values.component }}"
template:
metadata:
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Component }}"
component: "{{ .Release.Name }}-{{ .Values.component }}"
spec:
containers:
- name: {{ template "tensorflow-inception.fullname" . }}
image: "{{ .Values.Image }}:{{ .Values.ImageTag }}"
imagePullPolicy: "{{ .Values.ImagePullPolicy }}"
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
command:
- "/bin/sh"
- "-c"
args:
- "/serving/bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --port={{ .Values.ContainerPort }} --model_name=inception --model_base_path=/serving/inception-export"
- "/serving/bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --port={{ .Values.containerPort }} --model_name=inception --model_base_path=/serving/inception-export"
ports:
- containerPort: {{ .Values.ContainerPort }}
- containerPort: {{ .Values.containerPort }}
readinessProbe:
tcpSocket:
port: {{ .Values.ContainerPort }}
port: {{ .Values.containerPort }}
initialDelaySeconds: 15
timeoutSeconds: 1
resources:
{{ toYaml .Values.Resources | indent 12 }}
{{ toYaml .Values.resources | indent 12 }}
18 changes: 9 additions & 9 deletions incubator/tensorflow-inception/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# Declare name/value pairs to be passed into your templates.
# name: value

ServiceType: LoadBalancer
ServicePort: 9090
ContainerPort: 9090
Component: "tensorflow-inception"
Replicas: 1
Image: "quay.io/lachie83/inception_serving"
ImageTag: "latest"
ImagePullPolicy: "IfNotPresent"
Resources: {}
serviceType: LoadBalancer
servicePort: 9090
containerPort: 9090
component: "tensorflow-inception"
replicas: 1
image: "quay.io/lachie83/inception_serving"
imageTag: "latest"
imagePullPolicy: "IfNotPresent"
resources: {}
# limits:
# nvidia.com/gpu: 1
# cpu: 100m
Expand Down

0 comments on commit 555131b

Please sign in to comment.