summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Krzywka <filip.krzywka@nokia.com>2018-11-22 11:10:26 +0100
committerFilip Krzywka <filip.krzywka@nokia.com>2018-11-22 11:12:55 +0100
commit790b94bbee68099eece2b91a3a484cd6f0c120ce (patch)
treec5510a776d119baaed4c2e1dc8d5a8b3e744c01b
parent90569a330684b841084597334172549426336708 (diff)
Reenable HV-VES healthcheck
Change-Id: I18197e691f719b3ba40c117800b40946c2fd53ef Issue-ID: DCAEGEN2-794 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
-rw-r--r--blueprints/k8s-hv-ves.yaml-template19
1 files changed, 12 insertions, 7 deletions
diff --git a/blueprints/k8s-hv-ves.yaml-template b/blueprints/k8s-hv-ves.yaml-template
index fffafff..7840c94 100644
--- a/blueprints/k8s-hv-ves.yaml-template
+++ b/blueprints/k8s-hv-ves.yaml-template
@@ -59,6 +59,10 @@ inputs:
perf3gpp_kafka_topic:
type: string
default: 'HV_VES_PERF3GPP'
+ healthcheck_port:
+ type: integer
+ description: Network port that the HV-Ves HTTP service for performing healthcheck is running
+ default: 6060
node_templates:
hv-ves:
interfaces:
@@ -70,6 +74,8 @@ node_templates:
{ concat: [ 'http://', { get_input: consul_host }, ':', { get_input: consul_port }, '/v1/kv/', { get_input: hv_ves_name} ] }
VESHV_LISTEN_PORT:
{ concat: [ { get_input: container_port }, '' ] }
+ VESHV_HEALTH_CHECK_API_PORT:
+ { concat: [ { get_input: healthcheck_port }, '' ] }
VESHV_SSL_DISABLE: ''
properties:
application_config:
@@ -77,13 +83,12 @@ node_templates:
collector.routing:
- fromDomain: { get_input: perf3gpp_domain }
toTopic: { get_input: perf3gpp_kafka_topic }
-# TODO: https://jira.onap.org/browse/DCAEGEN2-794
-# docker_config:
-# healthcheck:
-# endpoint: /health/ready
-# interval: 15s
-# timeout: 1s
-# type: http
+ docker_config:
+ healthcheck:
+ type: script
+ script: "/opt/ves-hv-collector/bin/healthcheck.sh"
+ interval: 15s
+ timeout: 2s
image: { get_input: tag_version }
replicas: { get_input: replicas }
name: { get_input: hv_ves_name }