summaryrefslogtreecommitdiffstats
path: root/datafile-app-server/dpo/tosca_models/template.yaml
blob: 9b18414ac903e471159930b3fabed30aac1a94de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
  template_name: dcaegen2.collectors.datafile.datafile-app-server
imports:
- schema: schema.yaml
topology_template:
  inputs:
    topic0_aaf_password:
      type: string
    topic0_aaf_username:
      type: string
    topic0_client_role:
      type: string
  node_templates:
    dcaegen2.collectors.datafile.datafile-app-server:
      type: tosca.dcae.nodes.dockerApp.dcaegen2.collectors.datafile.datafile-app-server
      properties:
        datafile.policy: ''
        ftp.ftpesConfiguration.keyCert: config/dfc.jks
        ftp.ftpesConfiguration.keyPassword: secret
        ftp.ftpesConfiguration.trustedCa: config/ftp.jks
        ftp.ftpesConfiguration.trustedCaPassword: secret
        location_id:
          get_property:
          - SELF
          - composition
          - location_id
        security.enableDmaapCertAuth: 'False'
        security.keyStorePasswordPath: /opt/app/datafile/etc/cert/key.pass
        security.keyStorePath: /opt/app/datafile/etc/cert/key.p12
        security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass
        security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks
        service_name: datafile
        streams_consumer.datafile_consume_mr.message_router_topic: /events/unauthenticated.VES_NOTIFICATION_OUTPUT
      requirements:
      - stream_subscribe_0: topic0
      - stream_publish_0: feed1
      - policy: policy_0
    feed1:
      type: tosca.dcae.nodes.dmaap.feed
      properties:
        feed_name: ''
        location:
          get_property:
          - SELF
          - composition
          - location_id
        node_name: __GET_NODE_NAME__
      capabilities:
        feed:
          properties:
            feed_name:
              get_property:
              - SELF
              - feed_name
            location:
              get_property:
              - SELF
              - location
            node_name:
              get_property:
              - SELF
              - node_name
    policy_0:
      type: tosca.dcae.nodes.policy
      properties:
        policy_name: policy.nodes.dcaegen2.collectors.datafile.datafile-app-server
    topic0:
      type: tosca.dcae.nodes.dmaap.topic
      properties:
        aaf_password:
          get_input: topic0_aaf_password
        aaf_username:
          get_input: topic0_aaf_username
        client_role:
          get_input: topic0_client_role
        location:
          get_property:
          - SELF
          - composition
          - location_id
        node_name: __GET_NODE_NAME__
        topic_name: ''
      capabilities:
        topic:
          properties:
            aaf_password:
              get_property:
              - SELF
              - aaf_password
            aaf_username:
              get_property:
              - SELF
              - aaf_username
            client_role:
              get_property:
              - SELF
              - client_role
            location:
              get_property:
              - SELF
              - location
            node_name:
              get_property:
              - SELF
              - node_name
            topic_name:
              get_property:
              - SELF
              - topic_name
n class="nv">include "common.certInitializer.volumeMount" . | nindent 10 }} - name: sdc-certs mountPath: /sdc-certs resources: limits: cpu: 100m memory: 100Mi requests: cpu: 3m memory: 20Mi {{- end }} containers: - name: {{ include "common.name" . }} image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} {{- if .Values.global.aafEnabled }} command: - sh args: - "-c" - | export $(grep '^c' /sdc-certs/mycreds.prop | xargs -0) export KEYSTORE_PASS=$cadi_keystore_password_p12 export TRUSTSTORE_PASS=$cadi_truststore_password export KEYSTORE_PATH=/etc/{{ .Values.certInitializer.keystoreFile }} export TRUSTSTORE_PATH=/etc/{{ .Values.certInitializer.truststoreFile }} ./startup.sh {{- end }} ports: - containerPort: {{ template "wfd-fe.internalPort" . }} {{ if .Values.liveness.enabled }} livenessProbe: tcpSocket: port: {{ template "wfd-fe.internalPort" . }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} {{ end }} readinessProbe: tcpSocket: port: {{ template "wfd-fe.internalPort" . }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} env: - name: ENVNAME value: {{ .Values.env.name }} - name: JAVA_OPTIONS value: {{ .Values.config.javaOptions }} - name: BACKEND value: {{ .Values.config.backendServerURL }} - name: IS_HTTPS value: "{{ .Values.config.isHttpsEnabled}}" {{ if and .Values.config.isHttpsEnabled (eq .Values.security.isDefaultStore false) }} - name: TRUST_ALL value: "{{ .Values.config.isTrustAll}}" {{ end }} volumeMounts: - name: {{ include "common.fullname" . }}-localtime mountPath: /etc/localtime readOnly: true {{- if .Values.global.aafEnabled }} - name: sdc-certs mountPath: /sdc-certs/mycreds.prop subPath: mycreds.prop - name: sdc-certs mountPath: /var/lib/jetty/etc/{{ .Values.certInitializer.keystoreFile }} subPath: {{ .Values.certInitializer.keystoreFile }} - name: sdc-certs mountPath: /var/lib/jetty/etc/{{ .Values.certInitializer.truststoreFile }} subPath: {{ .Values.certInitializer.truststoreFile }} {{ end }} resources: {{ include "common.resources" . | nindent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 10 }} {{- end -}} {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} # side car containers - name: {{ include "common.name" . }}-filebeat-onap image: {{ include "repositoryGenerator.image.logging" . }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} volumeMounts: - name: {{ include "common.fullname" . }}-filebeat-conf mountPath: /usr/share/filebeat/filebeat.yml subPath: filebeat.yml - name: {{ include "common.fullname" . }}-logs mountPath: /var/log/onap - name: {{ include "common.fullname" . }}-data-filebeat mountPath: /usr/share/filebeat/data resources: limits: cpu: 100m memory: 100Mi requests: cpu: 3m memory: 20Mi volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }} - name: {{ include "common.fullname" . }}-localtime hostPath: path: /etc/localtime {{- if .Values.global.aafEnabled }} - name: sdc-certs emptyDir: medium: "Memory" {{- end }} - name: {{ include "common.fullname" . }}-filebeat-conf configMap: name: {{ include "common.release" . }}-sdc-filebeat-configmap - name: {{ include "common.fullname" . }}-data-filebeat emptyDir: {} - name: {{ include "common.fullname" . }}-logs emptyDir: {} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key"