summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859
# Copyright © 2017 Amdocs, Bell Canada
# Modifications Copyright © 2018 AT&T
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: {{ include "common.fullname" . }}
  namespace: {{ include "common.namespace" . }}
  labels:
    app: {{ include "common.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app: {{ include "common.name" . }}
  template:
    metadata:
      labels:
        app: {{ include "common.name" . }}
        release: {{ .Release.Name }}
      name: {{ include "common.name" . }}
      annotations:
        checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
        msb.onap.org/service-info: '[
          {
              "serviceName": "_aai-cloudInfrastructure",
              "version": "v11",
              "url": "/aai/v11/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v11/cloud-infrastructure"
          },
          {
              "serviceName": "_aai-cloudInfrastructure",
              "version": "v12",
              "url": "/aai/v12/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v12/cloud-infrastructure"
          },
          {
              "serviceName": "_aai-cloudInfrastructure",
              "version": "v13",
              "url": "/aai/v13/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v13/cloud-infrastructure"
          },
          {
              "serviceName": "_aai-cloudInfrastructure",
              "version": "v14",
              "url": "/aai/v14/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v14/cloud-infrastructure"
          },
          {
              "serviceName": "_aai-business",
              "version": "v11",
              "url": "/aai/v11/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v11/business"
          },
          {
              "serviceName": "_aai-business",
              "version": "v12",
              "url": "/aai/v12/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v12/business"
          },
          {
              "serviceName": "_aai-business",
              "version": "v13",
              "url": "/aai/v13/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v13/business"
          },
          {
              "serviceName": "_aai-business",
              "version": "v14",
              "url": "/aai/v14/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v14/business"
          },
          {
              "serviceName": "_aai-actions",
              "version": "v11",
              "url": "/aai/v11/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v11/actions"
          },
          {
              "serviceName": "_aai-actions",
              "version": "v12",
              "url": "/aai/v12/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v12/actions"
          },
          {
              "serviceName": "_aai-actions",
              "version": "v13",
              "url": "/aai/v13/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v13/actions"
          },
          {
              "serviceName": "_aai-actions",
              "version": "v14",
              "url": "/aai/v14/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v14/actions"
          },
          {
              "serviceName": "_aai-service-design-and-creation",
              "version": "v11",
              "url": "/aai/v11/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v11/service-design-and-creation"
          },
          {
              "serviceName": "_aai-service-design-and-creation",
              "version": "v12",
              "url": "/aai/v12/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v12/service-design-and-creation"
          },
          {
              "serviceName": "_aai-service-design-and-creation",
              "version": "v13",
              "url": "/aai/v13/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v13/service-design-and-creation"
          },
          {
              "serviceName": "_aai-service-design-and-creation",
              "version": "v14",
              "url": "/aai/v14/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v14/service-design-and-creation"
          },
          {
              "serviceName": "_aai-network",
              "version": "v11",
              "url": "/aai/v11/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v11/network"
          },
          {
              "serviceName": "_aai-network",
              "version": "v12",
              "url": "/aai/v12/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v12/network"
          },
          {
              "serviceName": "_aai-network",
              "version": "v13",
              "url": "/aai/v13/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v13/network"
          },
          {
              "serviceName": "_aai-network",
              "version": "v14",
              "url": "/aai/v14/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v14/network"
          },
          {
              "serviceName": "_aai-externalSystem",
              "version": "v11",
              "url": "/aai/v11/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v11/external-system"
          },
          {
              "serviceName": "_aai-externalSystem",
              "version": "v12",
              "url": "/aai/v12/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v12/external-system"
          },
          {
              "serviceName": "_aai-externalSystem",
              "version": "v13",
              "url": "/aai/v13/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v13/external-system"
          },
          {
              "serviceName": "_aai-externalSystem",
              "version": "v14",
              "url": "/aai/v14/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1",
              "path": "/aai/v14/external-system"
          },
          {
              "serviceName": "aai-cloudInfrastructure",
              "version": "v11",
              "url": "/aai/v11/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-cloudInfrastructure",
              "version": "v12",
              "url": "/aai/v12/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-cloudInfrastructure",
              "version": "v13",
              "url": "/aai/v13/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-cloudInfrastructure",
              "version": "v14",
              "url": "/aai/v14/cloud-infrastructure",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-business",
              "version": "v11",
              "url": "/aai/v11/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-business",
              "version": "v12",
              "url": "/aai/v12/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-business",
              "version": "v13",
              "url": "/aai/v13/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-business",
              "version": "v14",
              "url": "/aai/v14/business",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-actions",
              "version": "v11",
              "url": "/aai/v11/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-actions",
              "version": "v12",
              "url": "/aai/v12/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-actions",
              "version": "v13",
              "url": "/aai/v13/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-actions",
              "version": "v14",
              "url": "/aai/v14/actions",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-service-design-and-creation",
              "version": "v11",
              "url": "/aai/v11/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-service-design-and-creation",
              "version": "v12",
              "url": "/aai/v12/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-service-design-and-creation",
              "version": "v13",
              "url": "/aai/v13/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-service-design-and-creation",
              "version": "v14",
              "url": "/aai/v14/service-design-and-creation",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-network",
              "version": "v11",
              "url": "/aai/v11/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-network",
              "version": "v12",
              "url": "/aai/v12/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-network",
              "version": "v13",
              "url": "/aai/v13/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-network",
              "version": "v14",
              "url": "/aai/v14/network",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-externalSystem",
              "version": "v11",
              "url": "/aai/v11/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-externalSystem",
              "version": "v12",
              "url": "/aai/v12/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-externalSystem",
              "version": "v13",
              "url": "/aai/v13/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          },
          {
              "serviceName": "aai-externalSystem",
              "version": "v14",
              "url": "/aai/v14/external-system",
              "protocol": "REST",
              "port": "8447",
              "enable_ssl": true,
              "lb_policy":"ip_hash",
              "visualRange": "1"
          }
          ]'
    spec:
      hostname: aai-resources
    {{ if .Values.global.initContainers.enabled }}
      {{ if .Values.global.installSidecarSecurity }}
      hostAliases:
      - ip: {{ .Values.global.aaf.serverIp }}
        hostnames:
        - {{ .Values.global.aaf.serverHostname }}
      {{ end }}
      initContainers:
      - command:
      {{  if .Values.global.jobs.createSchema.enabled  }}
        - /root/job_complete.py
        args:
        - --job-name
        - {{ .Release.Name }}-aai-graphadmin-create-db-schema
      {{  else }}
        - /root/ready.py
        args:
        - --container-name
        - aai-cassandra
        - --container-name
        - aai-schema-service
      {{  end  }}
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        name: {{ include "common.name" . }}-readiness
      {{ if .Values.global.installSidecarSecurity }}
      - name: {{ .Values.global.tproxyConfig.name }}
        image: "{{ include "common.repository" . }}/{{ .Values.global.tproxyConfig.image }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        securityContext:
          privileged: true
      {{ end }}
    {{ end }}
      containers:
      - name: {{ include "common.name" . }}
        image: "{{ include "common.repository" . }}/{{ .Values.image }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        env:
        - name: LOCAL_USER_ID
          value: {{ .Values.global.config.userId | quote }}
        - name: LOCAL_GROUP_ID
          value: {{ .Values.global.config.groupId | quote }}
        volumeMounts:
        - mountPath: /etc/localtime
          name: localtime
          readOnly: true
        - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-realtime.properties
          name: {{ include "common.fullname" . }}-db-real-conf
          subPath: janusgraph-realtime.properties
        - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-cached.properties
          name: {{ include "common.fullname" . }}-db-cached-conf
          subPath: janusgraph-cached.properties
        - mountPath: /opt/app/aai-resources/resources/etc/appprops/aaiconfig.properties
          name: {{ include "common.fullname" . }}-aaiconfig-conf
          subPath: aaiconfig.properties
        - mountPath: /opt/aai/logroot/AAI-RES
          name: {{ include "common.fullname" . }}-logs
        - mountPath: /opt/app/aai-resources/resources/logback.xml
          name: {{ include "common.fullname" . }}-log-conf
          subPath: logback.xml
        - mountPath: /opt/app/aai-resources/resources/localhost-access-logback.xml
          name: {{ include "common.fullname" . }}-localhost-access-log-conf
          subPath: localhost-access-logback.xml
        - mountPath: /opt/app/aai-resources/resources/etc/auth/realm.properties
          name: {{ include "common.fullname" . }}-realm-conf
          subPath: realm.properties
        {{ if .Values.global.installSidecarSecurity }}
        - mountPath: /opt/app/aai-resources/resources/etc/auth/aai_policy.json
          name: {{ include "common.fullname" . }}-aai-policy
          subPath: aai_policy.json
        {{ end }}
        - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.keyfile
          name: {{ include "common.fullname" . }}-aaf-certs
          subPath: org.onap.aai.keyfile
        - mountPath: /opt/app/aai-resources/resources/aaf/bath_config.csv
          name: {{ include "common.fullname" . }}-aaf-certs
          subPath: bath_config.csv
        - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.props
          name: {{ include "common.fullname" . }}-aaf-properties
          subPath: org.onap.aai.props
        - mountPath: /opt/app/aai-resources/resources/aaf/org.osaaf.location.props
          name: {{ include "common.fullname" . }}-aaf-properties
          subPath: org.osaaf.location.props
        - mountPath: /opt/app/aai-resources/resources/aaf/permissions.properties
          name: {{ include "common.fullname" . }}-aaf-properties
          subPath: permissions.properties
        - mountPath: /opt/app/aai-resources/resources/cadi.properties
          name: {{ include "common.fullname" . }}-aaf-properties
          subPath: cadi.properties
        - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.p12
          name: {{ include "common.fullname" . }}-aaf-certs
          subPath: org.onap.aai.p12
        - mountPath: /opt/app/aai-resources/resources/aaf/truststoreONAPall.jks
          name: aai-common-aai-auth-mount
          subPath: truststoreONAPall.jks
        - mountPath: /opt/app/aai-resources/resources/application.properties
          name: {{ include "common.fullname" . }}-springapp-conf
          subPath: application.properties
          {{ $global := . }}
          {{ range $job := .Values.global.config.auth.files }}
        - mountPath: /opt/app/aai-resources/resources/etc/auth/{{ . }}
          name: {{ include "common.fullname" $global }}-auth-truststore-sec
          subPath: {{ . }}
          {{ end }}
        ports:
        - containerPort: {{ .Values.service.internalPort }}
        - containerPort: {{ .Values.service.internalPort2 }}
        # disable liveness probe when breakpoints set in debugger
        # so K8s doesn't restart unresponsive container
        {{ if .Values.liveness.enabled }}
        livenessProbe:
          tcpSocket:
            port: {{ .Values.service.internalPort }}
          initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
          periodSeconds: {{ .Values.liveness.periodSeconds }}
        {{ end }}
        readinessProbe:
          tcpSocket:
            port: {{ .Values.service.internalPort }}
          initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
          periodSeconds: {{ .Values.readiness.periodSeconds }}
        resources:
{{ include "common.resources" . }}
      {{- if .Values.nodeSelector }}
      nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
      {{- end -}}
      {{- if .Values.affinity }}
      affinity:
{{ toYaml .Values.affinity | indent 8 }}
      {{- end }}

      # side car containers
      - name: filebeat-onap
        image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        volumeMounts:
        - mountPath: /usr/share/filebeat/filebeat.yml
          subPath: filebeat.yml
          name: filebeat-conf
        - mountPath: /var/log/onap
          name: {{ include "common.fullname" . }}-logs
        - mountPath: /usr/share/filebeat/data
          name: {{ include "common.fullname" . }}-filebeat
        resources:
{{ include "common.resources" . }}
    {{ if .Values.global.installSidecarSecurity }}
      - name: {{ .Values.global.rproxy.name }}
        image: "{{ include "common.repository" . }}/{{ .Values.global.rproxy.image }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        env:
        - name: CONFIG_HOME
          value: "/opt/app/rproxy/config"
        - name: KEY_STORE_PASSWORD
          value: {{ .Values.sidecar.keyStorePassword }}
        - name: spring_profiles_active
          value: {{ .Values.global.rproxy.activeSpringProfiles }}
        volumeMounts:
        - name: {{ include "common.fullname" . }}-rproxy-config
          mountPath: /opt/app/rproxy/config/forward-proxy.properties
          subPath: forward-proxy.properties
        - name: {{ include "common.fullname" . }}-rproxy-config
          mountPath: /opt/app/rproxy/config/primary-service.properties
          subPath: primary-service.properties
        - name: {{ include "common.fullname" . }}-rproxy-config
          mountPath: /opt/app/rproxy/config/reverse-proxy.properties
          subPath: reverse-proxy.properties
        - name: {{ include "common.fullname" . }}-rproxy-config
          mountPath: /opt/app/rproxy/config/cadi.properties
          subPath: cadi.properties
        - name: {{ include "common.fullname" . }}-rproxy-log-config
          mountPath: /opt/app/rproxy/config/logback-spring.xml
          subPath: logback-spring.xml
        - name: {{ include "common.fullname" . }}-rproxy-uri-auth-config
          mountPath: /opt/app/rproxy/config/auth/uri-authorization.json
          subPath: uri-authorization.json
        - name: {{ include "common.fullname" . }}-rproxy-auth-config
          mountPath: /opt/app/rproxy/config/auth/tomcat_keystore
          subPath: tomcat_keystore
        - name: {{ include "common.fullname" . }}-rproxy-auth-config
          mountPath: /opt/app/rproxy/config/auth/client-cert.p12
          subPath: client-cert.p12
        - name: {{ include "common.fullname" . }}-rproxy-auth-config
          mountPath: /opt/app/rproxy/config/auth/aaf_truststore.jks
          subPath: aaf_truststore.jks
        - name: {{ include "common.fullname" . }}-rproxy-security-config
          mountPath: /opt/app/rproxy/config/security/keyfile
          subPath: keyfile
        - name: {{ include "common.fullname" . }}-rproxy-auth-config
          mountPath: /opt/app/rproxy/config/auth/org.onap.aai.p12
          subPath: org.onap.aai.p12
        ports:
        - containerPort: {{ .Values.global.rproxy.port }}

      - name: {{ .Values.global.fproxy.name }}
        image: "{{ include "common.repository" . }}/{{ .Values.global.fproxy.image }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        env:
        - name: CONFIG_HOME
          value: "/opt/app/fproxy/config"
        - name: KEY_STORE_PASSWORD
          value: {{ .Values.sidecar.keyStorePassword }}
        - name: TRUST_STORE_PASSWORD
          value: {{ .Values.sidecar.trustStorePassword }}
        - name: spring_profiles_active
          value: {{ .Values.global.fproxy.activeSpringProfiles }}
        volumeMounts:
        - name: {{ include "common.fullname" . }}-fproxy-config
          mountPath: /opt/app/fproxy/config/fproxy.properties
          subPath: fproxy.properties
        - name: {{ include "common.fullname" . }}-fproxy-log-config
          mountPath: /opt/app/fproxy/config/logback-spring.xml
          subPath: logback-spring.xml
        - name: {{ include "common.fullname" . }}-fproxy-auth-config
          mountPath: /opt/app/fproxy/config/auth/fproxy_truststore
          subPath: fproxy_truststore
        - name: {{ include "common.fullname" . }}-fproxy-auth-config
          mountPath: /opt/app/fproxy/config/auth/tomcat_keystore
          subPath: tomcat_keystore
        - name: {{ include "common.fullname" . }}-fproxy-auth-config
          mountPath: /opt/app/fproxy/config/auth/client-cert.p12
          subPath: client-cert.p12
        ports:
        - containerPort: {{ .Values.global.fproxy.port }}
    {{ end }}

      volumes:
      - name: aai-common-aai-auth-mount
        secret:
          secretName: aai-common-aai-auth
      - name: localtime
        hostPath:
          path: /etc/localtime
      - name: filebeat-conf
        configMap:
          name: aai-filebeat
      - name: {{ include "common.fullname" . }}-logs
        emptyDir: {}
      - name: {{ include "common.fullname" . }}-filebeat
        emptyDir: {}
      - name: {{ include "common.fullname" . }}-log-conf
        configMap:
         name: {{ include "common.fullname" . }}-log
      - name: {{ include "common.fullname" . }}-localhost-access-log-conf
        configMap:
         name: {{ include "common.fullname" . }}-localhost-access-log-configmap
      - name: {{ include "common.fullname" . }}-db-real-conf
        configMap:
         name: {{ include "common.fullname" . }}-db-real-configmap
      - name: {{ include "common.fullname" . }}-db-cached-conf
        configMap:
         name: {{ include "common.fullname" . }}-db-cached-configmap
      - name: {{ include "common.fullname" . }}-aaiconfig-conf
        configMap:
         name: {{ include "common.fullname" . }}-aaiconfig-configmap
      - name: {{ include "common.fullname" . }}-aaf-properties
        configMap:
         name: {{ include "common.fullname" . }}-aaf-props
      - name: {{ include "common.fullname" . }}-aaf-certs
        secret:
         secretName: {{ include "common.fullname" . }}-aaf-keys
      - name: {{ include "common.fullname" . }}-springapp-conf
        configMap:
         name: {{ include "common.fullname" . }}-springapp-configmap
      - name: {{ include "common.fullname" . }}-realm-conf
        configMap:
         name: {{ include "common.fullname" . }}-realm-configmap
      - name: {{ include "common.fullname" . }}-auth-truststore-sec
        secret:
         secretName: aai-common-truststore
         items:
          {{ range $job := .Values.global.config.auth.files }}
           - key: {{ . }}
             path: {{ . }}
          {{ end }}
    {{ if .Values.global.installSidecarSecurity }}
      - name: {{ include "common.fullname" . }}-aai-policy
        configMap:
         name: {{ include "common.fullname" . }}-aai-policy-configmap
      - name: {{ include "common.fullname" . }}-rproxy-config
        configMap:
         name: {{ include "common.fullname" . }}-rproxy-config
      - name: {{ include "common.fullname" . }}-rproxy-log-config
        configMap:
         name: {{ include "common.fullname" . }}-rproxy-log-config
      - name: {{ include "common.fullname" . }}-rproxy-uri-auth-config
        configMap:
         name: {{ include "common.fullname" . }}-rproxy-uri-auth-config
      - name: {{ include "common.fullname" . }}-rproxy-auth-config
        secret:
         secretName: {{ include "common.fullname" . }}-rproxy-auth-config
      - name: {{ include "common.fullname" . }}-rproxy-security-config
        secret:
         secretName: {{ include "common.fullname" . }}-rproxy-security-config
      - name: {{ include "common.fullname" . }}-fproxy-config
        configMap:
         name: {{ include "common.fullname" . }}-fproxy-config
      - name: {{ include "common.fullname" . }}-fproxy-log-config
        configMap:
         name: {{ include "common.fullname" . }}-fproxy-log-config
      - name: {{ include "common.fullname" . }}-fproxy-auth-config
        secret:
         secretName: {{ include "common.fullname" . }}-fproxy-auth-config
    {{ end }}
      restartPolicy: {{ .Values.restartPolicy }}
      imagePullSecrets:
      - name: "{{ include "common.namespace" . }}-docker-registry-key"