Adapt consul configuration for HV-VES
[dcaegen2/platform/blueprints.git] / blueprints / k8s-prh.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START====================================================
4 # =============================================================================
5 # Copyright (c) 2018 AT&T, NOKIA
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 imports:
23   - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
24   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.3/k8splugin_types.yaml
25
26 inputs:
27   aaiEnrichmentHost:
28     type: string
29     default: "aai.onap.svc.cluster.local"
30   aaiEnrichmentPort:
31     type: integer
32     default: 8443
33   aaiEnrichmentUser:
34     type: string
35     description: aai user name
36     default: "AAI"
37   aaiEnrichmentPasswd:
38     type: string
39     description: aai password
40     default: "AAI"
41   dmaap_host:
42     type: string
43     description: dmaap host
44     default: message-router.onap.svc.cluster.local
45   dmaap_port:
46     type: integer
47     description: dmaap port
48     default: 3904
49   dmaap_user:
50     type: string
51     description: dmap user name
52     default: "admin"
53   dmaap_passwd:
54     type: string
55     description: dmap password
56     default: "admin"
57   tag_version:
58     type: string
59     default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.services.prh.prh-app-server:1.0.0"
60   replicas:
61     type: integer
62     description: number of instances
63     default: 1
64   host_port:
65     description: port on Kubernetes host where PRH API will be exposed
66     default: 0
67 node_templates:
68   prh:
69     properties:
70       application_config:
71         dmaap.dmaapConsumerConfiguration.dmaapHostName: { get_input: dmaap_host }
72         dmaap.dmaapConsumerConfiguration.dmaapPortNumber: { get_input: dmaap_port }
73         dmaap.dmaapConsumerConfiguration.dmaapTopicName: "/events/unauthenticated.VES_PNFREG_OUTPUT"
74         dmaap.dmaapConsumerConfiguration.dmaapProtocol: "http"
75         dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_user }
76         dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }
77         dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
78         dmaap.dmaapConsumerConfiguration.consumerId: "c12"
79         dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
80         dmaap.dmaapConsumerConfiguration.timeoutMs: -1
81         dmaap.dmaapConsumerConfiguration.messageLimit: -1
82         dmaap.dmaapProducerConfiguration.dmaapHostName: { get_input: dmaap_host }
83         dmaap.dmaapProducerConfiguration.dmaapPortNumber: { get_input: dmaap_port }
84         dmaap.dmaapProducerConfiguration.dmaapTopicName: "/events/unauthenticated.PNF_READY"
85         dmaap.dmaapProducerConfiguration.dmaapProtocol: "http"
86         dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_user }
87         dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }
88         dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
89         aai.aaiClientConfiguration.aaiHost: { get_input: aaiEnrichmentHost }
90         aai.aaiClientConfiguration.aaiHostPortNumber: { get_input: aaiEnrichmentPort }
91         aai.aaiClientConfiguration.aaiProtocol: "https"
92         aai.aaiClientConfiguration.aaiUserName: { get_input: aaiEnrichmentUser }
93         aai.aaiClientConfiguration.aaiUserPassword: { get_input: aaiEnrichmentPasswd }
94         aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
95         aai.aaiClientConfiguration.aaiBasePath: "/aai/v12"
96         aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
97       host_port:
98           { get_input: host_port }
99       container_port:
100         8100
101       docker_config:
102         healthcheck:
103           endpoint: /heartbeat
104           interval: 15s
105           timeout: 1s
106           type: http
107       image:
108         get_input: tag_version
109       replicas: {get_input: replicas}
110       name: 'dcae-prh'
111       dns_name: 'dcae-prh'
112       log_info:
113         log_directory: "/opt/app/prh/logs"
114     type: dcae.nodes.ContainerizedPlatformComponent