diff options
author | Grzegorz-Lis <grzegorz.lis@nokia.com> | 2020-08-31 14:56:18 +0200 |
---|---|---|
committer | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2020-09-01 22:56:02 +0200 |
commit | 361de217f867d24cc067eccb303281e341e864c1 (patch) | |
tree | b16c9fe238f94e16a69d66f72c87a059c5023fe3 /blueprints/k8s-prh.yaml | |
parent | 633af426f074ab1ae0f5b87a8a7e247812a8f698 (diff) |
[DCAE] Adapt DCAE blueprints to CFY DCAE K8S plugin version 3.x.x
Issue-ID: DCAEGEN2-2386
Signed-off-by: Krzysztof Kuźmicki <krzysztof.kuzmicki@nokia.com>
Change-Id: I7f95b0c4280812e7c1897d3b97857f6331814ffa
Diffstat (limited to 'blueprints/k8s-prh.yaml')
-rw-r--r-- | blueprints/k8s-prh.yaml | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/blueprints/k8s-prh.yaml b/blueprints/k8s-prh.yaml index 5e924a7..f31cf8f 100644 --- a/blueprints/k8s-prh.yaml +++ b/blueprints/k8s-prh.yaml @@ -3,6 +3,7 @@ # ============LICENSE_START==================================================== # ============================================================================= # Copyright (c) 2018-2020 AT&T, NOKIA +# Copyright (c) 2020 NOKIA # ============================================================================= # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,7 +22,7 @@ tosca_definitions_version: cloudify_dsl_1_3 imports: - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml - - plugin:k8splugin?version=2.0.0 + - plugin:k8splugin?version=3.3.0 inputs: pnfUrl: type: string @@ -70,6 +71,16 @@ inputs: host_port: description: port on Kubernetes host where PRH API will be exposed default: 0 + container_port: + type: integer + description: Network port that the platform service exposes in the container + default: 8100 + service_component_type: + type: string + default: "dcae-prh" + service_id: + type: string + default: "dcae-prh" secureEnableCert: type: boolean description: enable certificate base connection with AAI and DMaap @@ -127,26 +138,23 @@ node_templates: type: "message_router" dmaap_info: topic_url: { get_input: dmaap_vesPnfRegOutput_url } - - host_port: - { get_input: host_port } - container_port: - 8100 docker_config: healthcheck: endpoint: /heartbeat interval: 15s timeout: 1s type: http + ports: + - { concat: [ { get_input: container_port }, ':', { get_input: host_port } ] } image: { get_input: tag_version } replicas: {get_input: replicas} - name: 'dcae-prh' - dns_name: 'dcae-prh' + service_component_type: { get_input: service_component_type } + service_id: { get_input: service_id } log_info: log_directory: "/opt/app/prh/logs" tls_info: cert_directory: '/opt/app/prh/etc/cert' use_tls: true - type: dcae.nodes.ContainerizedPlatformComponent + type: dcae.nodes.ContainerizedServiceComponent |