summaryrefslogtreecommitdiffstats
path: root/blueprints/k8s-hv-ves.yaml-template
diff options
context:
space:
mode:
Diffstat (limited to 'blueprints/k8s-hv-ves.yaml-template')
-rw-r--r--blueprints/k8s-hv-ves.yaml-template31
1 files changed, 19 insertions, 12 deletions
diff --git a/blueprints/k8s-hv-ves.yaml-template b/blueprints/k8s-hv-ves.yaml-template
index fffafff..acdbb59 100644
--- a/blueprints/k8s-hv-ves.yaml-template
+++ b/blueprints/k8s-hv-ves.yaml-template
@@ -2,7 +2,7 @@
#
# ============LICENSE_START====================================================
# =============================================================================
-# Copyright (C) 2018 NOKIA
+# Copyright (C) 2018-2019 NOKIA
# =============================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -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:
@@ -66,30 +70,33 @@ node_templates:
start:
inputs:
envs:
+ JAVA_OPTS: '-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml'
VESHV_CONFIG_URL:
- { concat: [ 'http://', { get_input: consul_host }, ':', { get_input: consul_port }, '/v1/kv/', { get_input: hv_ves_name} ] }
+ { concat: [ 'http://', { get_input: consul_host }, ':', { get_input: consul_port }, '/v1/kv/', { get_input: hv_ves_name}, '?raw=true' ] }
VESHV_LISTEN_PORT:
{ concat: [ { get_input: container_port }, '' ] }
+ VESHV_HEALTH_CHECK_API_PORT:
+ { concat: [ { get_input: healthcheck_port }, '' ] }
+ VESHV_KAFKA_BOOTSTRAP_SERVERS:
+ { get_input: kafka_bootstrap_servers }
VESHV_SSL_DISABLE: ''
properties:
application_config:
- dmaap.kafkaBootstrapServers: { get_input: kafka_bootstrap_servers }
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/healthcheck.sh"
+ interval: 15s
+ timeout: 2s
image: { get_input: tag_version }
replicas: { get_input: replicas }
name: { get_input: hv_ves_name }
- dns_name: 'dcae-hv-ves-collector'
+ dns_name: { get_input: hv_ves_name }
container_port: { get_input: container_port }
host_port: { get_input: host_port }
log_info:
- log_directory: '/opt/app/HvVesCollector/logs'
+ log_directory: '/var/log/ONAP/dcae-hv-ves-collector'
type: dcae.nodes.ContainerizedPlatformComponent