R7 tag/path update
[dcaegen2/platform/blueprints.git] / blueprints / k8s-datalake-admin-ui.yaml
1 # ============LICENSE_START====================================================
2 # =============================================================================
3 # Copyright (C) 2020 QCT
4 # =============================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END======================================================
17
18 #author: Kate Hsuan (kate.hsuan@qct.io)
19
20 tosca_definitions_version: cloudify_dsl_1_3
21 imports:
22   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
23   - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
24   - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml
25 inputs:
26   image_name:
27     description: datalake feeder image URL.
28     type: string
29     default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakeadminui:1.0.2
30   container_port:
31     type: string
32     description: exposed container port
33     default: "8088"
34   host_port:
35     type: string
36     description: external port
37     default: "30479"
38 node_templates:
39   datalake:
40     type: dcae.nodes.ContainerizedPlatformComponent
41     interfaces:
42       cloudify.interfaces.lifecycle:
43         start:
44           inputs:
45             ports:
46               - '8088:0'
47               - concat: [{get_input: container_port},":",{get_input: host_port}]
48     properties:
49       application_config:
50         FEEDER_ADDR: dl-feeder
51       docker_config:
52         healthcheck:
53           interval: 30s
54           timeout: 10s
55           type: http
56           endpoint: /
57       image:
58         get_input: image_name
59       dns_name: "dl-admin-ui"
60       name: datalake-admin-ui
61