Merge "include env for k8s deployment"
[dcaegen2/platform/blueprints.git] / blueprints / k8s-config_binding_service.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START====================================================
4 # =============================================================================
5 # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
6 # =============================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #      http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END======================================================
19
20 tosca_definitions_version: cloudify_dsl_1_3
21
22 description: >
23   This blueprint installs the config binding service
24
25 imports:
26   - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
27   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.0.1/k8splugin_types.yaml
28
29 inputs:
30
31   cbs_image:
32     description: Docker image for config binding service
33     default: {{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.configbinding:2.1.5
34   replicas:
35     description: Number of instances to launch
36     type: integer
37     default: 1
38
39 node_templates:
40   # Config binding service
41   service-config-binding:
42     type: dcae.nodes.ContainerizedPlatformComponent
43     properties:
44         name: 'config-binding-service'
45         container_port: 10000
46         image: { get_input: cbs_image }
47         docker_config:
48             healthcheck:
49                 type: "http"
50                 endpoint: "/healthcheck"
51         replicas: {get_input: replicas}
52         log_info:
53             log_directory: "/opt/logs"