Skip to content

Commit

Permalink
release v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kikkomep committed Apr 28, 2020
2 parents c54b905 + 891271d commit 7c47409
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ The following tables lists the main configurable parameters of the `deephealth-b
| `ingress.annations` | Annotations for the ingress realated with the API Endpoint service | `kubernetes.io/ingress.class: nginx` |
| `ingress.hosts` | Hosts paths for the ingress realated with the API Endpoint service (see example) | `nil` |
| `backend.image.repository` | Back-end App Docker Image | `dhealth/backend` |
| `backend.image.tag` | Back-end App Docker Image Tag | `b8ee98c` |
| `backend.image.tag` | Back-end App Docker Image Tag | `2fd828d8` |
| `backend.admin.username` | Username of the administrator of the backend app | `admin` |
| `backend.admin.password` | Password of the administrator of the backend app (autogenerated if not defined) | `nil` |
| `backend.admin.email` | Email of the administrator of the backend app | `nil` |
Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ RUN \
&& chown -R ${USERNAME} ${DATASETS_DIR} ${TRAINING_DIR} ${INFERENCE_DIR}

# Declare data volumes
VOLUME ["${DATASETS_DIR}"]
VOLUME ["${INFERENCE_DIR}"]
VOLUME ["${TRAINING_DIR}"]
#VOLUME ["${DATASETS_DIR}"]
#VOLUME ["${INFERENCE_DIR}"]
#VOLUME ["${TRAINING_DIR}"]

# Set the default user
USER ${USERNAME}
Expand Down
4 changes: 2 additions & 2 deletions k8s/deephealth-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "b8ee98c"
appVersion: "2fd828d8"
description: A Helm chart for Kubernetes
name: deephealth-backend
version: 0.1.1
version: 0.1.2
15 changes: 15 additions & 0 deletions k8s/deephealth-backend/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,21 @@ Define mount paths for shared volumes variables in connection between some pods.
mountPath: {{ .Values.backend.persistence.data.path }}
{{- end -}}

{{/*
Check if using GPU resources.
*/}}
{{- define "deephealth-backend.gpu-enabled" -}}
{{- if .Values.backend.resources -}}
{{- if hasKey .Values.backend.resources.limits "nvidia.com/gpu" -}}
{{- printf "true" -}}
{{- else -}}
{{- printf "false" -}}
{{- end -}}
{{- else -}}
{{- printf "false" -}}
{{- end -}}
{{- end -}}


{{/*
Define shared volumes in connection between some pods.
Expand Down
3 changes: 3 additions & 0 deletions k8s/deephealth-backend/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ stringData:
# Allow DEBUG mode. Don't run with debug turned on in production!
DEBUG={{ .Values.global.debug }}
# Enable eddl CS_GPU computing service
EDDL_WITH_CUDA={{ include "deephealth-backend.gpu-enabled" . }}
# Set SECRET_KEY. Keep the secret key used in production secret!
SECRET_KEY={{ include "deephealth-backend.djangoSecretKey" . }}
Expand Down
2 changes: 1 addition & 1 deletion k8s/deephealth-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ backend:

image: &backend_image
repository: dhealth/backend
tag: b8ee98c
tag: 2fd828d8
pullPolicy: *imagePullPolicy

service:
Expand Down
2 changes: 1 addition & 1 deletion k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ backend:

image: &backend_image
# repository: dhealth/backend
tag: b8ee98c
tag: 2fd828d8

# service:
# type: NodePort
Expand Down

0 comments on commit 7c47409

Please sign in to comment.