blob: 699312bea8a0312d91194a13a83997c14d46b2a1 [file] [log] [blame]
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +02001tosca_definitions_version: cloudify_dsl_1_3
2
3description: >
4 Blueprint deploys all ONAP kubernetes resources defined in YAML files on existing kubernetes cluster
5 The following pre-setup steps are assumed, but not required:
6 - Create Cloudify Example Environment: https://github.com/cloudify-examples/cloudify-environment-setup.
7 - Create Kubernetes Cluster: https://github.com/cloudify-examples/simple-kubernetes-blueprint.
8
9imports:
10 - https://raw.githubusercontent.com/cloudify-cosmo/cloudify-manager/4.1/resources/rest-service/cloudify/types/types.yaml
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020011 # Plugin required: https://github.com/cloudify-incubator/cloudify-kubernetes-plugin/releases/download/1.2.1rc1/cloudify_kubernetes_plugin-1.2.1rc1-py27-none-linux_x86_64-centos-Core.wgn
12 - https://raw.githubusercontent.com/cloudify-incubator/cloudify-kubernetes-plugin/1.2.1rc1/plugin.yaml
13 # Plugin required: http://repository.cloudifysource.org/cloudify/wagons/cloudify-fabric-plugin/1.4.2/cloudify_fabric_plugin-1.4.2-py27-none-linux_x86_64-centos-Core.wgn
14 - http://www.getcloudify.org/spec/fabric-plugin/1.4.2/plugin.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020015 - cloudify/types/onap.yaml
16
17inputs:
18 kubernetes_configuration_file_content:
19 description: >
20 File content of kubernetes master YAML configuration
21
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020022 namespace_prefix:
23 type: string
24 description: >
25 Kubernetes namespace name prefix which will be uese for all ONAP apps
26 default: onap
27
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020028dsl_definitions:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020029 options: &app_options
30 namespace:
31 concat: [{ get_input: namespace_prefix }, '-', { get_property: [SELF, name] }]
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020032
33node_templates:
34 kubernetes_master:
35 type: cloudify.kubernetes.nodes.Master
36 properties:
37 configuration:
38 file_content: { get_input: kubernetes_configuration_file_content }
39
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020040 onap_environment:
41 type: cloudify.onap.kubernetes.Environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020042 properties:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020043 namespace: { get_input: namespace_prefix }
44 init_pod: kubernetes/config/pod-config-init.yaml
45 options:
46 namespace: { get_input: namespace_prefix }
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020047 relationships:
48 - type: cloudify.kubernetes.relationships.managed_by_master
49 target: kubernetes_master
50
51 mso_app:
52 type: cloudify.onap.kubernetes.App
53 properties:
54 name: mso
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020055 values: kubernetes/mso/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020056 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020057 - kubernetes/mso/templates/mso-deployment.yaml
58 - kubernetes/mso/templates/db-deployment.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020059 services: kubernetes/mso/templates/all-services.yaml
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020060 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020061 relationships:
62 - type: cloudify.kubernetes.relationships.managed_by_master
63 target: kubernetes_master
64 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020065 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020066
67 message_router_app:
68 type: cloudify.onap.kubernetes.App
69 properties:
70 name: message-router
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020071 values: kubernetes/message-router/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020072 resources:
73 - kubernetes/message-router/templates/message-router-zookeeper.yaml
74 - kubernetes/message-router/templates/message-router-dmaap.yaml
75 - kubernetes/message-router/templates/message-router-kafka.yaml
76 services: kubernetes/message-router/templates/all-services.yaml
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020077 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020078 relationships:
79 - type: cloudify.kubernetes.relationships.managed_by_master
80 target: kubernetes_master
81 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020082 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020083
84 sdc_app:
85 type: cloudify.onap.kubernetes.App
86 properties:
87 name: sdc
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020088 values: kubernetes/sdc/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020089 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020090 - kubernetes/sdc/templates/sdc-es.yaml
91 - kubernetes/sdc/templates/sdc-fe.yaml
92 - kubernetes/sdc/templates/sdc-kb.yaml
93 - kubernetes/sdc/templates/sdc-cs.yaml
94 - kubernetes/sdc/templates/sdc-be.yaml
95 services: kubernetes/sdc/templates/all-services.yaml
96 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020097 relationships:
98 - type: cloudify.kubernetes.relationships.managed_by_master
99 target: kubernetes_master
100 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200101 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200102
103 aai_app:
104 type: cloudify.onap.kubernetes.App
105 properties:
106 name: aai
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200107 values: kubernetes/aai/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200108 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200109 - kubernetes/aai/templates/aai-deployment.yaml
110 - kubernetes/aai/templates/modelloader-deployment.yaml
111 - kubernetes/aai/templates/hbase-deployment.yaml
112 services: kubernetes/aai/templates/all-services.yaml
113 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200114 relationships:
115 - type: cloudify.kubernetes.relationships.managed_by_master
116 target: kubernetes_master
117 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200118 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200119
120 robot_app:
121 type: cloudify.onap.kubernetes.App
122 properties:
123 name: robot
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200124 values: kubernetes/robot/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200125 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200126 - kubernetes/robot/templates/robot-deployment.yaml
127 services: kubernetes/robot/templates/all-services.yaml
128 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200129 relationships:
130 - type: cloudify.kubernetes.relationships.managed_by_master
131 target: kubernetes_master
132 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200133 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200134
135 vid_app:
136 type: cloudify.onap.kubernetes.App
137 properties:
138 name: vid
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200139 values: kubernetes/vid/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200140 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200141 - kubernetes/templates/vid-mariadb-deployment.yaml
142 - kubernetes/templates/vid-server-deployment.yaml
143 services: kubernetes/vid/templates/all-services.yaml
144 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200145 relationships:
146 - type: cloudify.kubernetes.relationships.managed_by_master
147 target: kubernetes_master
148 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200149 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200150
151 sdnc_app:
152 type: cloudify.onap.kubernetes.App
153 properties:
154 name: sdnc
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200155 values: kubernetes/sdnc/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200156 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200157 - kubernetes/sdnc/templates/web-deployment.yaml
158 - kubernetes/sdnc/templates/sdnc-deployment.yaml
159 - kubernetes/sdnc/templates/dgbuilder-deployment.yaml
160 - kubernetes/sdnc/templates/db-deployment.yaml
161 services: kubernetes/sdnc/templates/all-services.yaml
162 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200163 relationships:
164 - type: cloudify.kubernetes.relationships.managed_by_master
165 target: kubernetes_master
166 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200167 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200168
169 portal_app:
170 type: cloudify.onap.kubernetes.App
171 properties:
172 name: portal
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200173 values: kubernetes/portal/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200174 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200175 - kubernetes/portal/templates/portal-widgets-deployment.yaml
176 - kubernetes/portal/templates/portal-apps-deployment.yaml
177 - kubernetes/portal/templates/portal-mariadb-deployment.yaml
178 - kubernetes/portal/templates/portal-vnc-dep.yaml
179 services: kubernetes/portal/templates/all-services.yaml
180 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200181 relationships:
182 - type: cloudify.kubernetes.relationships.managed_by_master
183 target: kubernetes_master
184 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200185 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200186
187 policy_app:
188 type: cloudify.onap.kubernetes.App
189 properties:
190 name: policy
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200191 values: kubernetes/policy/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200192 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200193 - kubernetes/policy/templates/dep-drools.yaml
194 - kubernetes/policy/templates/dep-nexus.yaml
195 - kubernetes/policy/templates/dep-brmsgw.yaml
196 - kubernetes/policy/templates/dep-pdp.yaml
197 - kubernetes/policy/templates/dep-pap.yaml
198 - kubernetes/policy/templates/dep-maria.yaml
199 - kubernetes/policy/templates/dep-pypdp.yaml
200 services: kubernetes/policy/templates/all-services.yaml
201 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200202 relationships:
203 - type: cloudify.kubernetes.relationships.managed_by_master
204 target: kubernetes_master
205 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200206 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200207
208 appc_app:
209 type: cloudify.onap.kubernetes.App
210 properties:
211 name: appc
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200212 values: kubernetes/appc/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200213 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200214 - kubernetes/appc/templates/appc-deployment.yaml
215 - kubernetes/appc/templates/dgbuilder-deployment.yaml
216 - kubernetes/appc/templates/db-deployment.yaml
217 services: kubernetes/appc/templates/all-services.yaml
218 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200219 relationships:
220 - type: cloudify.kubernetes.relationships.managed_by_master
221 target: kubernetes_master
222 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200223 target: onap_environment