vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 AT&T |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 19 | name: {{ include "common.fullname" . }} |
| 20 | namespace: {{ include "common.namespace" . }} |
| 21 | labels: |
| 22 | app: {{ include "common.name" . }} |
| 23 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 24 | release: {{ .Release.Name }} |
| 25 | heritage: {{ .Release.Service }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 26 | spec: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 27 | replicas: {{ .Values.replicaCount }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 28 | selector: |
| 29 | matchLabels: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 30 | app: {{ include "common.name" . }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 31 | template: |
| 32 | metadata: |
| 33 | labels: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 34 | app: {{ include "common.name" . }} |
| 35 | release: {{ .Release.Name }} |
| 36 | name: {{ include "common.name" . }} |
AdrianSlavkovsky | 03cc589 | 2018-03-08 09:55:53 +0100 | [diff] [blame] | 37 | annotations: |
Harish V Kajur | 8e7cbd2 | 2018-05-07 14:02:46 +0000 | [diff] [blame] | 38 | checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} |
AdrianSlavkovsky | 03cc589 | 2018-03-08 09:55:53 +0100 | [diff] [blame] | 39 | msb.onap.org/service-info: '[ |
| 40 | { |
| 41 | "serviceName": "_aai-cloudInfrastructure", |
| 42 | "version": "v11", |
| 43 | "url": "/aai/v11/cloud-infrastructure", |
| 44 | "protocol": "REST", |
| 45 | "port": "8447", |
| 46 | "enable_ssl": true, |
| 47 | "lb_policy":"ip_hash", |
| 48 | "visualRange": "1", |
| 49 | "path": "/aai/v11/cloud-infrastructure" |
| 50 | }, |
| 51 | { |
| 52 | "serviceName": "_aai-cloudInfrastructure", |
| 53 | "version": "v12", |
| 54 | "url": "/aai/v12/cloud-infrastructure", |
| 55 | "protocol": "REST", |
| 56 | "port": "8447", |
| 57 | "enable_ssl": true, |
| 58 | "lb_policy":"ip_hash", |
| 59 | "visualRange": "1", |
| 60 | "path": "/aai/v12/cloud-infrastructure" |
| 61 | }, |
| 62 | { |
| 63 | "serviceName": "_aai-cloudInfrastructure", |
| 64 | "version": "v13", |
| 65 | "url": "/aai/v13/cloud-infrastructure", |
| 66 | "protocol": "REST", |
| 67 | "port": "8447", |
| 68 | "enable_ssl": true, |
| 69 | "lb_policy":"ip_hash", |
| 70 | "visualRange": "1", |
| 71 | "path": "/aai/v13/cloud-infrastructure" |
| 72 | }, |
| 73 | { |
| 74 | "serviceName": "_aai-business", |
| 75 | "version": "v11", |
| 76 | "url": "/aai/v11/business", |
| 77 | "protocol": "REST", |
| 78 | "port": "8447", |
| 79 | "enable_ssl": true, |
| 80 | "lb_policy":"ip_hash", |
| 81 | "visualRange": "1", |
| 82 | "path": "/aai/v11/business" |
| 83 | }, |
| 84 | { |
| 85 | "serviceName": "_aai-business", |
| 86 | "version": "v12", |
| 87 | "url": "/aai/v12/business", |
| 88 | "protocol": "REST", |
| 89 | "port": "8447", |
| 90 | "enable_ssl": true, |
| 91 | "lb_policy":"ip_hash", |
| 92 | "visualRange": "1", |
| 93 | "path": "/aai/v12/business" |
| 94 | }, |
| 95 | { |
| 96 | "serviceName": "_aai-business", |
| 97 | "version": "v13", |
| 98 | "url": "/aai/v13/business", |
| 99 | "protocol": "REST", |
| 100 | "port": "8447", |
| 101 | "enable_ssl": true, |
| 102 | "lb_policy":"ip_hash", |
| 103 | "visualRange": "1", |
| 104 | "path": "/aai/v13/business" |
| 105 | }, |
| 106 | { |
| 107 | "serviceName": "_aai-actions", |
| 108 | "version": "v11", |
| 109 | "url": "/aai/v11/actions", |
| 110 | "protocol": "REST", |
| 111 | "port": "8447", |
| 112 | "enable_ssl": true, |
| 113 | "lb_policy":"ip_hash", |
| 114 | "visualRange": "1", |
| 115 | "path": "/aai/v11/actions" |
| 116 | }, |
| 117 | { |
| 118 | "serviceName": "_aai-actions", |
| 119 | "version": "v12", |
| 120 | "url": "/aai/v12/actions", |
| 121 | "protocol": "REST", |
| 122 | "port": "8447", |
| 123 | "enable_ssl": true, |
| 124 | "lb_policy":"ip_hash", |
| 125 | "visualRange": "1", |
| 126 | "path": "/aai/v12/actions" |
| 127 | }, |
| 128 | { |
| 129 | "serviceName": "_aai-actions", |
| 130 | "version": "v13", |
| 131 | "url": "/aai/v13/actions", |
| 132 | "protocol": "REST", |
| 133 | "port": "8447", |
| 134 | "enable_ssl": true, |
| 135 | "lb_policy":"ip_hash", |
| 136 | "visualRange": "1", |
| 137 | "path": "/aai/v13/actions" |
| 138 | }, |
| 139 | { |
| 140 | "serviceName": "_aai-service-design-and-creation", |
| 141 | "version": "v11", |
| 142 | "url": "/aai/v11/service-design-and-creation", |
| 143 | "protocol": "REST", |
| 144 | "port": "8447", |
| 145 | "enable_ssl": true, |
| 146 | "lb_policy":"ip_hash", |
| 147 | "visualRange": "1", |
| 148 | "path": "/aai/v11/service-design-and-creation" |
| 149 | }, |
| 150 | { |
| 151 | "serviceName": "_aai-service-design-and-creation", |
| 152 | "version": "v12", |
| 153 | "url": "/aai/v12/service-design-and-creation", |
| 154 | "protocol": "REST", |
| 155 | "port": "8447", |
| 156 | "enable_ssl": true, |
| 157 | "lb_policy":"ip_hash", |
| 158 | "visualRange": "1", |
| 159 | "path": "/aai/v12/service-design-and-creation" |
| 160 | }, |
| 161 | { |
| 162 | "serviceName": "_aai-service-design-and-creation", |
| 163 | "version": "v13", |
| 164 | "url": "/aai/v13/service-design-and-creation", |
| 165 | "protocol": "REST", |
| 166 | "port": "8447", |
| 167 | "enable_ssl": true, |
| 168 | "lb_policy":"ip_hash", |
| 169 | "visualRange": "1", |
| 170 | "path": "/aai/v13/service-design-and-creation" |
| 171 | }, |
| 172 | { |
| 173 | "serviceName": "_aai-network", |
| 174 | "version": "v11", |
| 175 | "url": "/aai/v11/network", |
| 176 | "protocol": "REST", |
| 177 | "port": "8447", |
| 178 | "enable_ssl": true, |
| 179 | "lb_policy":"ip_hash", |
| 180 | "visualRange": "1", |
| 181 | "path": "/aai/v11/network" |
| 182 | }, |
| 183 | { |
| 184 | "serviceName": "_aai-network", |
| 185 | "version": "v12", |
| 186 | "url": "/aai/v12/network", |
| 187 | "protocol": "REST", |
| 188 | "port": "8447", |
| 189 | "enable_ssl": true, |
| 190 | "lb_policy":"ip_hash", |
| 191 | "visualRange": "1", |
| 192 | "path": "/aai/v12/network" |
| 193 | }, |
| 194 | { |
| 195 | "serviceName": "_aai-network", |
| 196 | "version": "v13", |
| 197 | "url": "/aai/v13/network", |
| 198 | "protocol": "REST", |
| 199 | "port": "8447", |
| 200 | "enable_ssl": true, |
| 201 | "lb_policy":"ip_hash", |
| 202 | "visualRange": "1", |
| 203 | "path": "/aai/v13/network" |
| 204 | }, |
| 205 | { |
| 206 | "serviceName": "_aai-externalSystem", |
| 207 | "version": "v11", |
| 208 | "url": "/aai/v11/external-system", |
| 209 | "protocol": "REST", |
| 210 | "port": "8447", |
| 211 | "enable_ssl": true, |
| 212 | "lb_policy":"ip_hash", |
| 213 | "visualRange": "1", |
| 214 | "path": "/aai/v11/external-system" |
| 215 | }, |
| 216 | { |
| 217 | "serviceName": "_aai-externalSystem", |
| 218 | "version": "v12", |
| 219 | "url": "/aai/v12/external-system", |
| 220 | "protocol": "REST", |
| 221 | "port": "8447", |
| 222 | "enable_ssl": true, |
| 223 | "lb_policy":"ip_hash", |
| 224 | "visualRange": "1", |
| 225 | "path": "/aai/v12/external-system" |
| 226 | }, |
| 227 | { |
| 228 | "serviceName": "_aai-externalSystem", |
| 229 | "version": "v13", |
| 230 | "url": "/aai/v13/external-system", |
| 231 | "protocol": "REST", |
| 232 | "port": "8447", |
| 233 | "enable_ssl": true, |
| 234 | "lb_policy":"ip_hash", |
| 235 | "visualRange": "1", |
| 236 | "path": "/aai/v13/external-system" |
| 237 | }, |
| 238 | { |
| 239 | "serviceName": "aai-cloudInfrastructure", |
| 240 | "version": "v11", |
| 241 | "url": "/aai/v11/cloud-infrastructure", |
| 242 | "protocol": "REST", |
| 243 | "port": "8447", |
| 244 | "enable_ssl": true, |
| 245 | "lb_policy":"ip_hash", |
| 246 | "visualRange": "1" |
| 247 | }, |
| 248 | { |
| 249 | "serviceName": "aai-cloudInfrastructure", |
| 250 | "version": "v12", |
| 251 | "url": "/aai/v12/cloud-infrastructure", |
| 252 | "protocol": "REST", |
| 253 | "port": "8447", |
| 254 | "enable_ssl": true, |
| 255 | "lb_policy":"ip_hash", |
| 256 | "visualRange": "1" |
| 257 | }, |
| 258 | { |
| 259 | "serviceName": "aai-cloudInfrastructure", |
| 260 | "version": "v13", |
| 261 | "url": "/aai/v13/cloud-infrastructure", |
| 262 | "protocol": "REST", |
| 263 | "port": "8447", |
| 264 | "enable_ssl": true, |
| 265 | "lb_policy":"ip_hash", |
| 266 | "visualRange": "1" |
| 267 | }, |
| 268 | { |
| 269 | "serviceName": "aai-business", |
| 270 | "version": "v11", |
| 271 | "url": "/aai/v11/business", |
| 272 | "protocol": "REST", |
| 273 | "port": "8447", |
| 274 | "enable_ssl": true, |
| 275 | "lb_policy":"ip_hash", |
| 276 | "visualRange": "1" |
| 277 | }, |
| 278 | { |
| 279 | "serviceName": "aai-business", |
| 280 | "version": "v12", |
| 281 | "url": "/aai/v12/business", |
| 282 | "protocol": "REST", |
| 283 | "port": "8447", |
| 284 | "enable_ssl": true, |
| 285 | "lb_policy":"ip_hash", |
| 286 | "visualRange": "1" |
| 287 | }, |
| 288 | { |
| 289 | "serviceName": "aai-business", |
| 290 | "version": "v13", |
| 291 | "url": "/aai/v13/business", |
| 292 | "protocol": "REST", |
| 293 | "port": "8447", |
| 294 | "enable_ssl": true, |
| 295 | "lb_policy":"ip_hash", |
| 296 | "visualRange": "1" |
| 297 | }, |
| 298 | { |
| 299 | "serviceName": "aai-actions", |
| 300 | "version": "v11", |
| 301 | "url": "/aai/v11/actions", |
| 302 | "protocol": "REST", |
| 303 | "port": "8447", |
| 304 | "enable_ssl": true, |
| 305 | "lb_policy":"ip_hash", |
| 306 | "visualRange": "1" |
| 307 | }, |
| 308 | { |
| 309 | "serviceName": "aai-actions", |
| 310 | "version": "v12", |
| 311 | "url": "/aai/v12/actions", |
| 312 | "protocol": "REST", |
| 313 | "port": "8447", |
| 314 | "enable_ssl": true, |
| 315 | "lb_policy":"ip_hash", |
| 316 | "visualRange": "1" |
| 317 | }, |
| 318 | { |
| 319 | "serviceName": "aai-actions", |
| 320 | "version": "v13", |
| 321 | "url": "/aai/v13/actions", |
| 322 | "protocol": "REST", |
| 323 | "port": "8447", |
| 324 | "enable_ssl": true, |
| 325 | "lb_policy":"ip_hash", |
| 326 | "visualRange": "1" |
| 327 | }, |
| 328 | { |
| 329 | "serviceName": "aai-service-design-and-creation", |
| 330 | "version": "v11", |
| 331 | "url": "/aai/v11/service-design-and-creation", |
| 332 | "protocol": "REST", |
| 333 | "port": "8447", |
| 334 | "enable_ssl": true, |
| 335 | "lb_policy":"ip_hash", |
| 336 | "visualRange": "1" |
| 337 | }, |
| 338 | { |
| 339 | "serviceName": "aai-service-design-and-creation", |
| 340 | "version": "v12", |
| 341 | "url": "/aai/v12/service-design-and-creation", |
| 342 | "protocol": "REST", |
| 343 | "port": "8447", |
| 344 | "enable_ssl": true, |
| 345 | "lb_policy":"ip_hash", |
| 346 | "visualRange": "1" |
| 347 | }, |
| 348 | { |
| 349 | "serviceName": "aai-service-design-and-creation", |
| 350 | "version": "v13", |
| 351 | "url": "/aai/v13/service-design-and-creation", |
| 352 | "protocol": "REST", |
| 353 | "port": "8447", |
| 354 | "enable_ssl": true, |
| 355 | "lb_policy":"ip_hash", |
| 356 | "visualRange": "1" |
| 357 | }, |
| 358 | { |
| 359 | "serviceName": "aai-network", |
| 360 | "version": "v11", |
| 361 | "url": "/aai/v11/network", |
| 362 | "protocol": "REST", |
| 363 | "port": "8447", |
| 364 | "enable_ssl": true, |
| 365 | "lb_policy":"ip_hash", |
| 366 | "visualRange": "1" |
| 367 | }, |
| 368 | { |
| 369 | "serviceName": "aai-network", |
| 370 | "version": "v12", |
| 371 | "url": "/aai/v12/network", |
| 372 | "protocol": "REST", |
| 373 | "port": "8447", |
| 374 | "enable_ssl": true, |
| 375 | "lb_policy":"ip_hash", |
| 376 | "visualRange": "1" |
| 377 | }, |
| 378 | { |
| 379 | "serviceName": "aai-network", |
| 380 | "version": "v13", |
| 381 | "url": "/aai/v13/network", |
| 382 | "protocol": "REST", |
| 383 | "port": "8447", |
| 384 | "enable_ssl": true, |
| 385 | "lb_policy":"ip_hash", |
| 386 | "visualRange": "1" |
| 387 | }, |
| 388 | { |
| 389 | "serviceName": "aai-externalSystem", |
| 390 | "version": "v11", |
| 391 | "url": "/aai/v11/external-system", |
| 392 | "protocol": "REST", |
| 393 | "port": "8447", |
| 394 | "enable_ssl": true, |
| 395 | "lb_policy":"ip_hash", |
| 396 | "visualRange": "1" |
| 397 | }, |
| 398 | { |
| 399 | "serviceName": "aai-externalSystem", |
| 400 | "version": "v12", |
| 401 | "url": "/aai/v12/external-system", |
| 402 | "protocol": "REST", |
| 403 | "port": "8447", |
| 404 | "enable_ssl": true, |
| 405 | "lb_policy":"ip_hash", |
| 406 | "visualRange": "1" |
| 407 | }, |
| 408 | { |
| 409 | "serviceName": "aai-externalSystem", |
| 410 | "version": "v13", |
| 411 | "url": "/aai/v13/external-system", |
| 412 | "protocol": "REST", |
| 413 | "port": "8447", |
| 414 | "enable_ssl": true, |
| 415 | "lb_policy":"ip_hash", |
| 416 | "visualRange": "1" |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 417 | } |
AdrianSlavkovsky | 03cc589 | 2018-03-08 09:55:53 +0100 | [diff] [blame] | 418 | ]' |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 419 | spec: |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 420 | hostname: aai-resources |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 421 | {{ if .Values.global.initContainers.enabled }} |
kiranya | 52a5783 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 422 | initContainers: |
| 423 | - command: |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 424 | {{ if .Values.global.jobs.createSchema.enabled }} |
| 425 | - /root/job_complete.py |
| 426 | args: |
| 427 | - --job-name |
| 428 | - {{ .Release.Name }}-aai-graphadmin-create-db-schema |
| 429 | {{ else }} |
kiranya | 52a5783 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 430 | - /root/ready.py |
| 431 | args: |
| 432 | - --container-name |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 433 | - aai-cassandra |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 434 | {{ end }} |
kiranya | 52a5783 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 435 | env: |
| 436 | - name: NAMESPACE |
| 437 | valueFrom: |
| 438 | fieldRef: |
| 439 | apiVersion: v1 |
| 440 | fieldPath: metadata.namespace |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 441 | image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}" |
| 442 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 443 | name: {{ include "common.name" . }}-readiness |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 444 | {{ end }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 445 | containers: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 446 | - name: {{ include "common.name" . }} |
BorislavG | df11cd5 | 2018-05-06 12:55:20 +0000 | [diff] [blame] | 447 | image: "{{ include "common.repository" . }}/{{ .Values.image }}" |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 448 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 449 | env: |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 450 | - name: LOCAL_USER_ID |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 451 | value: {{ .Values.global.config.userId | quote }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 452 | - name: LOCAL_GROUP_ID |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 453 | value: {{ .Values.global.config.groupId | quote }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 454 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 455 | - mountPath: /etc/localtime |
| 456 | name: localtime |
| 457 | readOnly: true |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 458 | - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-realtime.properties |
| 459 | name: {{ include "common.fullname" . }}-db-real-conf |
| 460 | subPath: janusgraph-realtime.properties |
| 461 | - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-cached.properties |
| 462 | name: {{ include "common.fullname" . }}-db-cached-conf |
| 463 | subPath: janusgraph-cached.properties |
| 464 | - mountPath: /opt/app/aai-resources/resources/etc/appprops/aaiconfig.properties |
| 465 | name: {{ include "common.fullname" . }}-aaiconfig-conf |
| 466 | subPath: aaiconfig.properties |
Harish V Kajur | 8e7cbd2 | 2018-05-07 14:02:46 +0000 | [diff] [blame] | 467 | - mountPath: /opt/aai/logroot/AAI-RES |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 468 | name: {{ include "common.fullname" . }}-logs |
| 469 | - mountPath: /opt/app/aai-resources/resources/logback.xml |
| 470 | name: {{ include "common.fullname" . }}-log-conf |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 471 | subPath: logback.xml |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 472 | - mountPath: /opt/app/aai-resources/resources/localhost-access-logback.xml |
| 473 | name: {{ include "common.fullname" . }}-localhost-access-log-conf |
| 474 | subPath: localhost-access-logback.xml |
Kajur, Harish (vk250x) | 5386b5a | 2018-10-03 11:41:42 -0400 | [diff] [blame] | 475 | - mountPath: /opt/app/aai-resources/resources/etc/auth/realm.properties |
| 476 | name: {{ include "common.fullname" . }}-realm-conf |
| 477 | subPath: realm.properties |
Pavel Paroulek | 58ab38e | 2018-09-12 21:34:41 +0200 | [diff] [blame] | 478 | - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.keyfile |
| 479 | name: {{ include "common.fullname" . }}-aaf-certs |
| 480 | subPath: org.onap.aai.keyfile |
Pavel Paroulek | 8aaf2cf | 2018-10-16 15:21:06 +0200 | [diff] [blame] | 481 | - mountPath: /opt/app/aai-resources/resources/aaf/bath_config.csv |
| 482 | name: {{ include "common.fullname" . }}-aaf-certs |
| 483 | subPath: bath_config.csv |
Pavel Paroulek | 58ab38e | 2018-09-12 21:34:41 +0200 | [diff] [blame] | 484 | - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.props |
| 485 | name: {{ include "common.fullname" . }}-aaf-properties |
| 486 | subPath: org.onap.aai.props |
| 487 | - mountPath: /opt/app/aai-resources/resources/aaf/org.osaaf.location.props |
| 488 | name: {{ include "common.fullname" . }}-aaf-properties |
| 489 | subPath: org.osaaf.location.props |
| 490 | - mountPath: /opt/app/aai-resources/resources/aaf/permissions.properties |
| 491 | name: {{ include "common.fullname" . }}-aaf-properties |
| 492 | subPath: permissions.properties |
| 493 | - mountPath: /opt/app/aai-resources/resources/cadi.properties |
| 494 | name: {{ include "common.fullname" . }}-aaf-properties |
| 495 | subPath: cadi.properties |
| 496 | - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.p12 |
| 497 | name: {{ include "common.fullname" . }}-aaf-certs |
| 498 | subPath: org.onap.aai.p12 |
| 499 | - mountPath: /opt/app/aai-resources/resources/aaf/truststoreONAPall.jks |
| 500 | name: {{ include "common.fullname" . }}-aaf-certs |
| 501 | subPath: truststoreONAPall.jks |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 502 | - mountPath: /opt/app/aai-resources/resources/application.properties |
| 503 | name: {{ include "common.fullname" . }}-springapp-conf |
| 504 | subPath: application.properties |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 505 | {{ $global := . }} |
| 506 | {{ range $job := .Values.global.config.auth.files }} |
| 507 | - mountPath: /opt/app/aai-resources/resources/etc/auth/{{ . }} |
| 508 | name: {{ include "common.fullname" $global }}-auth-truststore-sec |
| 509 | subPath: {{ . }} |
| 510 | {{ end }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 511 | ports: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 512 | - containerPort: {{ .Values.service.internalPort }} |
| 513 | - containerPort: {{ .Values.service.internalPort2 }} |
| 514 | # disable liveness probe when breakpoints set in debugger |
| 515 | # so K8s doesn't restart unresponsive container |
| 516 | {{ if .Values.liveness.enabled }} |
| 517 | livenessProbe: |
| 518 | tcpSocket: |
| 519 | port: {{ .Values.service.internalPort }} |
| 520 | initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} |
| 521 | periodSeconds: {{ .Values.liveness.periodSeconds }} |
| 522 | {{ end }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 523 | readinessProbe: |
| 524 | tcpSocket: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 525 | port: {{ .Values.service.internalPort }} |
| 526 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 527 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
| 528 | resources: |
Mandeep Khinda | 5e3f36a | 2018-09-24 15:25:42 +0000 | [diff] [blame] | 529 | {{ include "common.resources" . | indent 12 }} |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 530 | {{- if .Values.nodeSelector }} |
| 531 | nodeSelector: |
| 532 | {{ toYaml .Values.nodeSelector | indent 8 }} |
| 533 | {{- end -}} |
| 534 | {{- if .Values.affinity }} |
| 535 | affinity: |
| 536 | {{ toYaml .Values.affinity | indent 8 }} |
| 537 | {{- end }} |
| 538 | |
| 539 | # side car containers |
| 540 | - name: filebeat-onap |
| 541 | image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}" |
| 542 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 543 | volumeMounts: |
| 544 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | f313ba9 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 545 | subPath: filebeat.yml |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 546 | name: filebeat-conf |
| 547 | - mountPath: /var/log/onap |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 548 | name: {{ include "common.fullname" . }}-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 549 | - mountPath: /usr/share/filebeat/data |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 550 | name: {{ include "common.fullname" . }}-filebeat |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 551 | |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 552 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 553 | - name: localtime |
| 554 | hostPath: |
| 555 | path: /etc/localtime |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 556 | - name: filebeat-conf |
mayankg2703 | f313ba9 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 557 | configMap: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 558 | name: aai-filebeat |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 559 | - name: {{ include "common.fullname" . }}-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 560 | emptyDir: {} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 561 | - name: {{ include "common.fullname" . }}-filebeat |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 562 | emptyDir: {} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 563 | - name: {{ include "common.fullname" . }}-log-conf |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 564 | configMap: |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 565 | name: {{ include "common.fullname" . }}-log |
| 566 | - name: {{ include "common.fullname" . }}-localhost-access-log-conf |
| 567 | configMap: |
| 568 | name: {{ include "common.fullname" . }}-localhost-access-log-configmap |
| 569 | - name: {{ include "common.fullname" . }}-db-real-conf |
| 570 | configMap: |
| 571 | name: {{ include "common.fullname" . }}-db-real-configmap |
| 572 | - name: {{ include "common.fullname" . }}-db-cached-conf |
| 573 | configMap: |
| 574 | name: {{ include "common.fullname" . }}-db-cached-configmap |
| 575 | - name: {{ include "common.fullname" . }}-aaiconfig-conf |
| 576 | configMap: |
| 577 | name: {{ include "common.fullname" . }}-aaiconfig-configmap |
Pavel Paroulek | 58ab38e | 2018-09-12 21:34:41 +0200 | [diff] [blame] | 578 | - name: {{ include "common.fullname" . }}-aaf-properties |
| 579 | configMap: |
| 580 | name: {{ include "common.fullname" . }}-aaf-props |
| 581 | - name: {{ include "common.fullname" . }}-aaf-certs |
| 582 | secret: |
| 583 | secretName: {{ include "common.fullname" . }}-aaf-keys |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 584 | - name: {{ include "common.fullname" . }}-springapp-conf |
| 585 | configMap: |
| 586 | name: {{ include "common.fullname" . }}-springapp-configmap |
| 587 | - name: {{ include "common.fullname" . }}-realm-conf |
| 588 | configMap: |
| 589 | name: {{ include "common.fullname" . }}-realm-configmap |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 590 | - name: {{ include "common.fullname" . }}-auth-truststore-sec |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 591 | secret: |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 592 | secretName: aai-auth-truststore-secret |
| 593 | items: |
| 594 | {{ range $job := .Values.global.config.auth.files }} |
| 595 | - key: {{ . }} |
| 596 | path: {{ . }} |
| 597 | {{ end }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 598 | restartPolicy: {{ .Values.restartPolicy }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 599 | imagePullSecrets: |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 600 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |