yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiAaiResources }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: aai-resources |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a97d3fd | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.aaiResourceReplicas }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: aai-resources |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: aai-resources |
| 16 | name: aai-resources |
AdrianSlavkovsky | 03cc589 | 2018-03-08 09:55:53 +0100 | [diff] [blame] | 17 | annotations: |
| 18 | msb.onap.org/service-info: '[ |
| 19 | { |
| 20 | "serviceName": "_aai-cloudInfrastructure", |
| 21 | "version": "v11", |
| 22 | "url": "/aai/v11/cloud-infrastructure", |
| 23 | "protocol": "REST", |
| 24 | "port": "8447", |
| 25 | "enable_ssl": true, |
| 26 | "lb_policy":"ip_hash", |
| 27 | "visualRange": "1", |
| 28 | "path": "/aai/v11/cloud-infrastructure" |
| 29 | }, |
| 30 | { |
| 31 | "serviceName": "_aai-cloudInfrastructure", |
| 32 | "version": "v12", |
| 33 | "url": "/aai/v12/cloud-infrastructure", |
| 34 | "protocol": "REST", |
| 35 | "port": "8447", |
| 36 | "enable_ssl": true, |
| 37 | "lb_policy":"ip_hash", |
| 38 | "visualRange": "1", |
| 39 | "path": "/aai/v12/cloud-infrastructure" |
| 40 | }, |
| 41 | { |
| 42 | "serviceName": "_aai-cloudInfrastructure", |
| 43 | "version": "v13", |
| 44 | "url": "/aai/v13/cloud-infrastructure", |
| 45 | "protocol": "REST", |
| 46 | "port": "8447", |
| 47 | "enable_ssl": true, |
| 48 | "lb_policy":"ip_hash", |
| 49 | "visualRange": "1", |
| 50 | "path": "/aai/v13/cloud-infrastructure" |
| 51 | }, |
| 52 | { |
| 53 | "serviceName": "_aai-business", |
| 54 | "version": "v11", |
| 55 | "url": "/aai/v11/business", |
| 56 | "protocol": "REST", |
| 57 | "port": "8447", |
| 58 | "enable_ssl": true, |
| 59 | "lb_policy":"ip_hash", |
| 60 | "visualRange": "1", |
| 61 | "path": "/aai/v11/business" |
| 62 | }, |
| 63 | { |
| 64 | "serviceName": "_aai-business", |
| 65 | "version": "v12", |
| 66 | "url": "/aai/v12/business", |
| 67 | "protocol": "REST", |
| 68 | "port": "8447", |
| 69 | "enable_ssl": true, |
| 70 | "lb_policy":"ip_hash", |
| 71 | "visualRange": "1", |
| 72 | "path": "/aai/v12/business" |
| 73 | }, |
| 74 | { |
| 75 | "serviceName": "_aai-business", |
| 76 | "version": "v13", |
| 77 | "url": "/aai/v13/business", |
| 78 | "protocol": "REST", |
| 79 | "port": "8447", |
| 80 | "enable_ssl": true, |
| 81 | "lb_policy":"ip_hash", |
| 82 | "visualRange": "1", |
| 83 | "path": "/aai/v13/business" |
| 84 | }, |
| 85 | { |
| 86 | "serviceName": "_aai-actions", |
| 87 | "version": "v11", |
| 88 | "url": "/aai/v11/actions", |
| 89 | "protocol": "REST", |
| 90 | "port": "8447", |
| 91 | "enable_ssl": true, |
| 92 | "lb_policy":"ip_hash", |
| 93 | "visualRange": "1", |
| 94 | "path": "/aai/v11/actions" |
| 95 | }, |
| 96 | { |
| 97 | "serviceName": "_aai-actions", |
| 98 | "version": "v12", |
| 99 | "url": "/aai/v12/actions", |
| 100 | "protocol": "REST", |
| 101 | "port": "8447", |
| 102 | "enable_ssl": true, |
| 103 | "lb_policy":"ip_hash", |
| 104 | "visualRange": "1", |
| 105 | "path": "/aai/v12/actions" |
| 106 | }, |
| 107 | { |
| 108 | "serviceName": "_aai-actions", |
| 109 | "version": "v13", |
| 110 | "url": "/aai/v13/actions", |
| 111 | "protocol": "REST", |
| 112 | "port": "8447", |
| 113 | "enable_ssl": true, |
| 114 | "lb_policy":"ip_hash", |
| 115 | "visualRange": "1", |
| 116 | "path": "/aai/v13/actions" |
| 117 | }, |
| 118 | { |
| 119 | "serviceName": "_aai-service-design-and-creation", |
| 120 | "version": "v11", |
| 121 | "url": "/aai/v11/service-design-and-creation", |
| 122 | "protocol": "REST", |
| 123 | "port": "8447", |
| 124 | "enable_ssl": true, |
| 125 | "lb_policy":"ip_hash", |
| 126 | "visualRange": "1", |
| 127 | "path": "/aai/v11/service-design-and-creation" |
| 128 | }, |
| 129 | { |
| 130 | "serviceName": "_aai-service-design-and-creation", |
| 131 | "version": "v12", |
| 132 | "url": "/aai/v12/service-design-and-creation", |
| 133 | "protocol": "REST", |
| 134 | "port": "8447", |
| 135 | "enable_ssl": true, |
| 136 | "lb_policy":"ip_hash", |
| 137 | "visualRange": "1", |
| 138 | "path": "/aai/v12/service-design-and-creation" |
| 139 | }, |
| 140 | { |
| 141 | "serviceName": "_aai-service-design-and-creation", |
| 142 | "version": "v13", |
| 143 | "url": "/aai/v13/service-design-and-creation", |
| 144 | "protocol": "REST", |
| 145 | "port": "8447", |
| 146 | "enable_ssl": true, |
| 147 | "lb_policy":"ip_hash", |
| 148 | "visualRange": "1", |
| 149 | "path": "/aai/v13/service-design-and-creation" |
| 150 | }, |
| 151 | { |
| 152 | "serviceName": "_aai-network", |
| 153 | "version": "v11", |
| 154 | "url": "/aai/v11/network", |
| 155 | "protocol": "REST", |
| 156 | "port": "8447", |
| 157 | "enable_ssl": true, |
| 158 | "lb_policy":"ip_hash", |
| 159 | "visualRange": "1", |
| 160 | "path": "/aai/v11/network" |
| 161 | }, |
| 162 | { |
| 163 | "serviceName": "_aai-network", |
| 164 | "version": "v12", |
| 165 | "url": "/aai/v12/network", |
| 166 | "protocol": "REST", |
| 167 | "port": "8447", |
| 168 | "enable_ssl": true, |
| 169 | "lb_policy":"ip_hash", |
| 170 | "visualRange": "1", |
| 171 | "path": "/aai/v12/network" |
| 172 | }, |
| 173 | { |
| 174 | "serviceName": "_aai-network", |
| 175 | "version": "v13", |
| 176 | "url": "/aai/v13/network", |
| 177 | "protocol": "REST", |
| 178 | "port": "8447", |
| 179 | "enable_ssl": true, |
| 180 | "lb_policy":"ip_hash", |
| 181 | "visualRange": "1", |
| 182 | "path": "/aai/v13/network" |
| 183 | }, |
| 184 | { |
| 185 | "serviceName": "_aai-externalSystem", |
| 186 | "version": "v11", |
| 187 | "url": "/aai/v11/external-system", |
| 188 | "protocol": "REST", |
| 189 | "port": "8447", |
| 190 | "enable_ssl": true, |
| 191 | "lb_policy":"ip_hash", |
| 192 | "visualRange": "1", |
| 193 | "path": "/aai/v11/external-system" |
| 194 | }, |
| 195 | { |
| 196 | "serviceName": "_aai-externalSystem", |
| 197 | "version": "v12", |
| 198 | "url": "/aai/v12/external-system", |
| 199 | "protocol": "REST", |
| 200 | "port": "8447", |
| 201 | "enable_ssl": true, |
| 202 | "lb_policy":"ip_hash", |
| 203 | "visualRange": "1", |
| 204 | "path": "/aai/v12/external-system" |
| 205 | }, |
| 206 | { |
| 207 | "serviceName": "_aai-externalSystem", |
| 208 | "version": "v13", |
| 209 | "url": "/aai/v13/external-system", |
| 210 | "protocol": "REST", |
| 211 | "port": "8447", |
| 212 | "enable_ssl": true, |
| 213 | "lb_policy":"ip_hash", |
| 214 | "visualRange": "1", |
| 215 | "path": "/aai/v13/external-system" |
| 216 | }, |
| 217 | { |
| 218 | "serviceName": "aai-cloudInfrastructure", |
| 219 | "version": "v11", |
| 220 | "url": "/aai/v11/cloud-infrastructure", |
| 221 | "protocol": "REST", |
| 222 | "port": "8447", |
| 223 | "enable_ssl": true, |
| 224 | "lb_policy":"ip_hash", |
| 225 | "visualRange": "1" |
| 226 | }, |
| 227 | { |
| 228 | "serviceName": "aai-cloudInfrastructure", |
| 229 | "version": "v12", |
| 230 | "url": "/aai/v12/cloud-infrastructure", |
| 231 | "protocol": "REST", |
| 232 | "port": "8447", |
| 233 | "enable_ssl": true, |
| 234 | "lb_policy":"ip_hash", |
| 235 | "visualRange": "1" |
| 236 | }, |
| 237 | { |
| 238 | "serviceName": "aai-cloudInfrastructure", |
| 239 | "version": "v13", |
| 240 | "url": "/aai/v13/cloud-infrastructure", |
| 241 | "protocol": "REST", |
| 242 | "port": "8447", |
| 243 | "enable_ssl": true, |
| 244 | "lb_policy":"ip_hash", |
| 245 | "visualRange": "1" |
| 246 | }, |
| 247 | { |
| 248 | "serviceName": "aai-business", |
| 249 | "version": "v11", |
| 250 | "url": "/aai/v11/business", |
| 251 | "protocol": "REST", |
| 252 | "port": "8447", |
| 253 | "enable_ssl": true, |
| 254 | "lb_policy":"ip_hash", |
| 255 | "visualRange": "1" |
| 256 | }, |
| 257 | { |
| 258 | "serviceName": "aai-business", |
| 259 | "version": "v12", |
| 260 | "url": "/aai/v12/business", |
| 261 | "protocol": "REST", |
| 262 | "port": "8447", |
| 263 | "enable_ssl": true, |
| 264 | "lb_policy":"ip_hash", |
| 265 | "visualRange": "1" |
| 266 | }, |
| 267 | { |
| 268 | "serviceName": "aai-business", |
| 269 | "version": "v13", |
| 270 | "url": "/aai/v13/business", |
| 271 | "protocol": "REST", |
| 272 | "port": "8447", |
| 273 | "enable_ssl": true, |
| 274 | "lb_policy":"ip_hash", |
| 275 | "visualRange": "1" |
| 276 | }, |
| 277 | { |
| 278 | "serviceName": "aai-actions", |
| 279 | "version": "v11", |
| 280 | "url": "/aai/v11/actions", |
| 281 | "protocol": "REST", |
| 282 | "port": "8447", |
| 283 | "enable_ssl": true, |
| 284 | "lb_policy":"ip_hash", |
| 285 | "visualRange": "1" |
| 286 | }, |
| 287 | { |
| 288 | "serviceName": "aai-actions", |
| 289 | "version": "v12", |
| 290 | "url": "/aai/v12/actions", |
| 291 | "protocol": "REST", |
| 292 | "port": "8447", |
| 293 | "enable_ssl": true, |
| 294 | "lb_policy":"ip_hash", |
| 295 | "visualRange": "1" |
| 296 | }, |
| 297 | { |
| 298 | "serviceName": "aai-actions", |
| 299 | "version": "v13", |
| 300 | "url": "/aai/v13/actions", |
| 301 | "protocol": "REST", |
| 302 | "port": "8447", |
| 303 | "enable_ssl": true, |
| 304 | "lb_policy":"ip_hash", |
| 305 | "visualRange": "1" |
| 306 | }, |
| 307 | { |
| 308 | "serviceName": "aai-service-design-and-creation", |
| 309 | "version": "v11", |
| 310 | "url": "/aai/v11/service-design-and-creation", |
| 311 | "protocol": "REST", |
| 312 | "port": "8447", |
| 313 | "enable_ssl": true, |
| 314 | "lb_policy":"ip_hash", |
| 315 | "visualRange": "1" |
| 316 | }, |
| 317 | { |
| 318 | "serviceName": "aai-service-design-and-creation", |
| 319 | "version": "v12", |
| 320 | "url": "/aai/v12/service-design-and-creation", |
| 321 | "protocol": "REST", |
| 322 | "port": "8447", |
| 323 | "enable_ssl": true, |
| 324 | "lb_policy":"ip_hash", |
| 325 | "visualRange": "1" |
| 326 | }, |
| 327 | { |
| 328 | "serviceName": "aai-service-design-and-creation", |
| 329 | "version": "v13", |
| 330 | "url": "/aai/v13/service-design-and-creation", |
| 331 | "protocol": "REST", |
| 332 | "port": "8447", |
| 333 | "enable_ssl": true, |
| 334 | "lb_policy":"ip_hash", |
| 335 | "visualRange": "1" |
| 336 | }, |
| 337 | { |
| 338 | "serviceName": "aai-network", |
| 339 | "version": "v11", |
| 340 | "url": "/aai/v11/network", |
| 341 | "protocol": "REST", |
| 342 | "port": "8447", |
| 343 | "enable_ssl": true, |
| 344 | "lb_policy":"ip_hash", |
| 345 | "visualRange": "1" |
| 346 | }, |
| 347 | { |
| 348 | "serviceName": "aai-network", |
| 349 | "version": "v12", |
| 350 | "url": "/aai/v12/network", |
| 351 | "protocol": "REST", |
| 352 | "port": "8447", |
| 353 | "enable_ssl": true, |
| 354 | "lb_policy":"ip_hash", |
| 355 | "visualRange": "1" |
| 356 | }, |
| 357 | { |
| 358 | "serviceName": "aai-network", |
| 359 | "version": "v13", |
| 360 | "url": "/aai/v13/network", |
| 361 | "protocol": "REST", |
| 362 | "port": "8447", |
| 363 | "enable_ssl": true, |
| 364 | "lb_policy":"ip_hash", |
| 365 | "visualRange": "1" |
| 366 | }, |
| 367 | { |
| 368 | "serviceName": "aai-externalSystem", |
| 369 | "version": "v11", |
| 370 | "url": "/aai/v11/external-system", |
| 371 | "protocol": "REST", |
| 372 | "port": "8447", |
| 373 | "enable_ssl": true, |
| 374 | "lb_policy":"ip_hash", |
| 375 | "visualRange": "1" |
| 376 | }, |
| 377 | { |
| 378 | "serviceName": "aai-externalSystem", |
| 379 | "version": "v12", |
| 380 | "url": "/aai/v12/external-system", |
| 381 | "protocol": "REST", |
| 382 | "port": "8447", |
| 383 | "enable_ssl": true, |
| 384 | "lb_policy":"ip_hash", |
| 385 | "visualRange": "1" |
| 386 | }, |
| 387 | { |
| 388 | "serviceName": "aai-externalSystem", |
| 389 | "version": "v13", |
| 390 | "url": "/aai/v13/external-system", |
| 391 | "protocol": "REST", |
| 392 | "port": "8447", |
| 393 | "enable_ssl": true, |
| 394 | "lb_policy":"ip_hash", |
| 395 | "visualRange": "1" |
| 396 | } |
| 397 | ]' |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 398 | spec: |
kiranya | 52a5783 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 399 | initContainers: |
| 400 | - command: |
| 401 | - /root/ready.py |
| 402 | args: |
| 403 | - --container-name |
| 404 | - hbase |
| 405 | env: |
| 406 | - name: NAMESPACE |
| 407 | valueFrom: |
| 408 | fieldRef: |
| 409 | apiVersion: v1 |
| 410 | fieldPath: metadata.namespace |
| 411 | image: {{ .Values.image.readiness }} |
| 412 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 413 | name: aai-resources-readiness |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 414 | containers: |
| 415 | - name: aai-resources |
| 416 | image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}" |
| 417 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 418 | env: |
| 419 | - name: CHEF_BRANCH |
| 420 | value: master |
| 421 | - name: AAI_CHEF_ENV |
| 422 | value: simpledemo |
| 423 | - name: AAI_CORE_VERSION |
| 424 | value: 1.1.0-SNAPSHOT |
| 425 | - name: AAI_CHEF_LOC |
| 426 | value: /var/chef/aai-data/environments |
| 427 | - name: CHEF_GIT_URL |
| 428 | value: http://gerrit.onap.org/r/aai |
Venkata Harish K Kajur | 6aaabe0 | 2017-10-04 05:06:35 +0000 | [diff] [blame] | 429 | - name: HBASE_STARTUP_ARTIFICIAL_DELAY |
| 430 | value: "60" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 431 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 432 | - mountPath: /etc/localtime |
| 433 | name: localtime |
| 434 | readOnly: true |
mayankg2703 | f313ba9 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 435 | - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb |
| 436 | subPath: solo.rb |
| 437 | name: aai-chef-config |
| 438 | - mountPath: /var/chef/aai-data/environments/ |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 439 | name: aai-data |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 440 | - mountPath: /var/log/onap |
| 441 | name: aai-resources-logs |
| 442 | - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml |
| 443 | name: aai-resources-log-conf |
| 444 | subPath: logback.xml |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 445 | ports: |
| 446 | - containerPort: 8447 |
| 447 | readinessProbe: |
| 448 | tcpSocket: |
| 449 | port: 8447 |
| 450 | initialDelaySeconds: 5 |
| 451 | periodSeconds: 10 |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 452 | - name: filebeat-onap-aai-resources |
| 453 | image: {{ .Values.image.filebeat }} |
| 454 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 455 | volumeMounts: |
| 456 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | f313ba9 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 457 | subPath: filebeat.yml |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 458 | name: filebeat-conf |
| 459 | - mountPath: /var/log/onap |
| 460 | name: aai-resources-logs |
| 461 | - mountPath: /usr/share/filebeat/data |
| 462 | name: aai-resources-filebeat |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 463 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 464 | - name: localtime |
| 465 | hostPath: |
| 466 | path: /etc/localtime |
mayankg2703 | f313ba9 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 467 | - name: aai-chef-config |
| 468 | configMap: |
| 469 | name: aai-chef-config-configmap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 470 | - name: aai-data |
mayankg2703 | f313ba9 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 471 | configMap: |
| 472 | name: aai-resources-environments-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 473 | - name: filebeat-conf |
mayankg2703 | f313ba9 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 474 | configMap: |
| 475 | name: aai-filebeat-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 476 | - name: aai-resources-logs |
| 477 | emptyDir: {} |
| 478 | - name: aai-resources-filebeat |
| 479 | emptyDir: {} |
| 480 | - name: aai-resources-log-conf |
| 481 | configMap: |
mayankg2703 | b090fba | 2018-02-07 05:48:29 +0000 | [diff] [blame] | 482 | name: aai-resources-log-configmap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 483 | restartPolicy: Always |
| 484 | imagePullSecrets: |
| 485 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 52a5783 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 486 | #{{ end }} |