YongchaoWu | a59f75a | 2020-01-28 09:43:38 +0100 | [diff] [blame] | 1 | |
maximesson | f217fff | 2020-04-09 15:16:04 +0200 | [diff] [blame] | 2 | #description: Docker application of Policy Agent managing policies |
YongchaoWu | a59f75a | 2020-01-28 09:43:38 +0100 | [diff] [blame] | 3 | #blueprint_version: 1.0.0 |
| 4 | --- |
| 5 | tosca_definitions_version: cloudify_dsl_1_3 |
| 6 | description: Docker application to collect log file from PNF |
| 7 | imports: |
| 8 | - http://www.getcloudify.org/spec/cloudify/4.3.1/types.yaml |
| 9 | - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R5/k8splugin/1.6.0/k8splugin_types.yaml |
| 10 | - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/dmaap/dmaap.yaml |
| 11 | inputs: |
| 12 | policy-agent_cpu_limit: |
| 13 | type: string |
| 14 | default: "250m" |
| 15 | policy-agent_cpu_request: |
| 16 | type: string |
| 17 | default: "250m" |
| 18 | policy-agent_memory_limit: |
| 19 | type: string |
| 20 | default: "256Mi" |
| 21 | policy-agent_memory_request: |
| 22 | type: string |
| 23 | default: "256Mi" |
| 24 | envs: |
| 25 | default: {} |
| 26 | external_port: |
| 27 | type: string |
| 28 | default: ":0" |
| 29 | publish_topic_name: |
| 30 | type: string |
| 31 | default: "A1-POLICY-AGENT-WRITE" |
| 32 | subscribe_topic_name: |
| 33 | type: string |
| 34 | default: "A1-POLICY-AGENT-READ" |
| 35 | consumer_group: |
| 36 | type: string |
| 37 | default: "users" |
| 38 | consumer_id: |
| 39 | type: string |
| 40 | default: "policy-agent" |
| 41 | log_directory: |
| 42 | type: string |
| 43 | default: "/var/log/policy-agent" |
| 44 | replicas: |
| 45 | type: integer |
| 46 | description: number of instances |
| 47 | default: 1 |
| 48 | tag_version: |
| 49 | type: string |
| 50 | default: "nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-policy-agent:1.0.0" |
| 51 | node_templates: |
| 52 | policy-agent: |
| 53 | type: dcae.nodes.ContainerizedServiceComponentUsingDmaap |
| 54 | interfaces: |
| 55 | cloudify.interfaces.lifecycle: |
| 56 | start: |
| 57 | inputs: |
| 58 | envs: |
| 59 | get_input: envs |
| 60 | properties: |
| 61 | application_config: |
| 62 | streams_publishes: |
| 63 | dmaap_publisher: |
| 64 | dmaap_info: |
| 65 | topic_url: { concat: ['https://message-router:3905/events/',{ get_input: publish_topic_name }] } |
| 66 | type: message_router |
| 67 | streams_subscribes: |
| 68 | dmaap_subscriber: |
| 69 | dmaap_info: |
PatrikBuhr | 4e7db50 | 2020-06-16 11:19:01 +0200 | [diff] [blame] | 70 | topic_url: { concat: ['https://message-router:3905/events/',{ get_input: subscribe_topic_name }, '/', { get_input: consumer_group }, "/", { get_input: consumer_id }, "?timeout=15000&limit=100"] } |
YongchaoWu | a59f75a | 2020-01-28 09:43:38 +0100 | [diff] [blame] | 71 | type: message_router |
| 72 | ric: |
| 73 | - name: ric1 |
| 74 | baseUrl: http://localhost:8083/ |
| 75 | managedElementIds: |
| 76 | - kista_1 |
| 77 | - kista_2 |
| 78 | - name: ric2 |
| 79 | baseUrl: http://localhost:8085/ |
| 80 | managedElementIds: |
| 81 | - kista_3 |
| 82 | - kista_4 |
| 83 | docker_config: |
| 84 | healthcheck: |
| 85 | interval: 15s |
| 86 | timeout: 1s |
| 87 | type: http |
| 88 | endpoint: /status |
| 89 | ports: |
| 90 | - concat: ["8081", {get_input: external_port}] |
| 91 | image: |
| 92 | get_input: tag_version |
| 93 | service_component_type: policy-agent |
| 94 | log_info: |
| 95 | log_directory: |
| 96 | get_input: log_directory |
| 97 | replicas: |
| 98 | get_input: replicas |
| 99 | resource_config: |
| 100 | limits: |
| 101 | cpu: |
| 102 | get_input: policy-agent_cpu_limit |
| 103 | memory: |
| 104 | get_input: policy-agent_memory_limit |
| 105 | requests: |
| 106 | cpu: |
| 107 | get_input: policy-agent_cpu_request |
| 108 | memory: |
| 109 | get_input: policy-agent_memory_request |
| 110 | |
| 111 | |