Merge "update bp and input template for ves7"
[dcaegen2/platform/blueprints.git] / blueprints / k8s-policy_handler.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START=======================================================
4 # org.onap.dcae
5 # ================================================================================
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #      http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END=========================================================
20
21 tosca_definitions_version: cloudify_dsl_1_3
22
23 description: >
24   This blueprint deploys/manages the DCAE policy-handler as a Docker container
25
26 imports:
27   - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
28   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.1/k8splugin_types.yaml
29
30
31 inputs:
32
33   policy_handler_image:
34     description: Docker image for policy_handler
35     default: '{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.policy-handler:4.0.0'
36
37   application_config:
38     description: policy handler application configuration - requires info on policy-engine
39     default: {}
40
41 node_templates:
42   policy_handler:
43     type: dcae.nodes.ContainerizedPlatformComponent
44     properties:
45         name: 'policy_handler'
46         dns_name: 'policy-handler'
47         image: { get_input: policy_handler_image }
48         application_config: { get_input: application_config }
49         docker_config:
50           healthcheck:
51             type: 'http'
52             interval: '300s'
53             timeout: '25s'
54             endpoint: '/healthcheck'
55         log_info:
56             log_directory: '/opt/app/policy_handler/logs'
57         container_port: 25577