blob: f12d6ac02e53f0263c2b24f44879c5244b6046ed [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 services: _temp/services.yaml
61 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020062 relationships:
63 - type: cloudify.kubernetes.relationships.managed_by_master
64 target: kubernetes_master
65 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020066 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020067
68 message_router_app:
69 type: cloudify.onap.kubernetes.App
70 properties:
71 name: message-router
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020072 values: kubernetes/message-router/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020073 resources:
74 - kubernetes/message-router/templates/message-router-zookeeper.yaml
75 - kubernetes/message-router/templates/message-router-dmaap.yaml
76 - kubernetes/message-router/templates/message-router-kafka.yaml
77 services: kubernetes/message-router/templates/all-services.yaml
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020078 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020079 relationships:
80 - type: cloudify.kubernetes.relationships.managed_by_master
81 target: kubernetes_master
82 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020083 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020084
85 sdc_app:
86 type: cloudify.onap.kubernetes.App
87 properties:
88 name: sdc
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020089 values: kubernetes/sdc/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020090 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +020091 - kubernetes/sdc/templates/sdc-es.yaml
92 - kubernetes/sdc/templates/sdc-fe.yaml
93 - kubernetes/sdc/templates/sdc-kb.yaml
94 - kubernetes/sdc/templates/sdc-cs.yaml
95 - kubernetes/sdc/templates/sdc-be.yaml
96 services: kubernetes/sdc/templates/all-services.yaml
97 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +020098 relationships:
99 - type: cloudify.kubernetes.relationships.managed_by_master
100 target: kubernetes_master
101 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200102 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200103
104 aai_app:
105 type: cloudify.onap.kubernetes.App
106 properties:
107 name: aai
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200108 values: kubernetes/aai/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200109 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200110 - kubernetes/aai/templates/aai-deployment.yaml
111 - kubernetes/aai/templates/modelloader-deployment.yaml
112 - kubernetes/aai/templates/hbase-deployment.yaml
113 services: kubernetes/aai/templates/all-services.yaml
114 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200115 relationships:
116 - type: cloudify.kubernetes.relationships.managed_by_master
117 target: kubernetes_master
118 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200119 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200120
121 robot_app:
122 type: cloudify.onap.kubernetes.App
123 properties:
124 name: robot
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200125 values: kubernetes/robot/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200126 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200127 - kubernetes/robot/templates/robot-deployment.yaml
128 services: kubernetes/robot/templates/all-services.yaml
129 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200130 relationships:
131 - type: cloudify.kubernetes.relationships.managed_by_master
132 target: kubernetes_master
133 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200134 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200135
136 vid_app:
137 type: cloudify.onap.kubernetes.App
138 properties:
139 name: vid
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200140 values: kubernetes/vid/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200141 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200142 - kubernetes/templates/vid-mariadb-deployment.yaml
143 - kubernetes/templates/vid-server-deployment.yaml
144 services: kubernetes/vid/templates/all-services.yaml
145 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200146 relationships:
147 - type: cloudify.kubernetes.relationships.managed_by_master
148 target: kubernetes_master
149 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200150 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200151
152 sdnc_app:
153 type: cloudify.onap.kubernetes.App
154 properties:
155 name: sdnc
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200156 values: kubernetes/sdnc/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200157 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200158 - kubernetes/sdnc/templates/web-deployment.yaml
159 - kubernetes/sdnc/templates/sdnc-deployment.yaml
160 - kubernetes/sdnc/templates/dgbuilder-deployment.yaml
161 - kubernetes/sdnc/templates/db-deployment.yaml
162 services: kubernetes/sdnc/templates/all-services.yaml
163 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200164 relationships:
165 - type: cloudify.kubernetes.relationships.managed_by_master
166 target: kubernetes_master
167 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200168 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200169
170 portal_app:
171 type: cloudify.onap.kubernetes.App
172 properties:
173 name: portal
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200174 values: kubernetes/portal/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200175 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200176 - kubernetes/portal/templates/portal-widgets-deployment.yaml
177 - kubernetes/portal/templates/portal-apps-deployment.yaml
178 - kubernetes/portal/templates/portal-mariadb-deployment.yaml
179 - kubernetes/portal/templates/portal-vnc-dep.yaml
180 services: kubernetes/portal/templates/all-services.yaml
181 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200182 relationships:
183 - type: cloudify.kubernetes.relationships.managed_by_master
184 target: kubernetes_master
185 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200186 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200187
188 policy_app:
189 type: cloudify.onap.kubernetes.App
190 properties:
191 name: policy
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200192 values: kubernetes/policy/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200193 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200194 - kubernetes/policy/templates/dep-drools.yaml
195 - kubernetes/policy/templates/dep-nexus.yaml
196 - kubernetes/policy/templates/dep-brmsgw.yaml
197 - kubernetes/policy/templates/dep-pdp.yaml
198 - kubernetes/policy/templates/dep-pap.yaml
199 - kubernetes/policy/templates/dep-maria.yaml
200 - kubernetes/policy/templates/dep-pypdp.yaml
201 services: kubernetes/policy/templates/all-services.yaml
202 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200203 relationships:
204 - type: cloudify.kubernetes.relationships.managed_by_master
205 target: kubernetes_master
206 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200207 target: onap_environment
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200208
209 appc_app:
210 type: cloudify.onap.kubernetes.App
211 properties:
212 name: appc
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200213 values: kubernetes/appc/values.yaml
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200214 resources:
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200215 - kubernetes/appc/templates/appc-deployment.yaml
216 - kubernetes/appc/templates/dgbuilder-deployment.yaml
217 - kubernetes/appc/templates/db-deployment.yaml
218 services: kubernetes/appc/templates/all-services.yaml
219 options: *app_options
Krzysztof Bijakowski652bdc52017-08-28 16:52:39 +0200220 relationships:
221 - type: cloudify.kubernetes.relationships.managed_by_master
222 target: kubernetes_master
223 - type: cloudify.relationships.depends_on
Krzysztof Bijakowski06bdb6a2017-09-05 10:26:20 +0200224 target: onap_environment