# msda-eureka **Repository Path**: f5-modern-app/msda-eureka ## Basic Information - **Project Name**: msda-eureka - **Description**: No description available - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-16 - **Last Updated**: 2025-04-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # iAppLX MSDA forf eureka This iApp is an example of MSDA for eureka, including an audit processor. ## Build (requires rpmbuild) Check the modules dependency: ```bash $ cd src/nodejs $ npm list ``` Fix all dependent modules with `npm install` command. Go back to the root direct of the project, build an rpm package: ```bash $ cd ../.. $ npm run build ``` Build output is an RPM package ## Using IAppLX from BIG-IP UI If you are using BIG-IP, install f5-iapplx-msda-eureka RPM package using iApps->Package Management LX->Import screen. To create an application, use iApps-> Templates LX -> Application Services -> Applications LX -> Create screen. Default IApp LX UI will be rendered based on the input properties specified in basic pool IAppLX. ## Using IAppLX from REST API to configure BIG-IP Using the REST API to work with BIG-IP with f5-iapplx-msda-eureka IAppLX package installed. Create an Application LX block with all inputProperties as shown below. Save the JSON to block.json and use it in the curl call. Refer to the clouddoc link for more detail: https://clouddocs.f5.com/products/iapp/iapp-lx/tmos-14_0/iapplx_ops_tutorials/creating_iappslx_with_rest.html . ```json { "name": "msdaeureka", "inputProperties": [ { "id": "eurekaEndpoint", "type": "STRING", "value": "http://1.1.1.1:8761", "metaData": { "description": "eureka endpoint list, include authtication information if applicable. eg. http://user:pass@1.1.1.1:8761", "displayName": "eureka endpoints", "isRequired": true } }, { "id": "servicePath", "type": "STRING", "value": "/eureka/apps/", "metaData": { "description": "Service path of your eureka server", "displayName": "Service path in registry", "isRequired": true } }, { "id": "serviceName", "type": "STRING", "value": "msda-demo-service", "metaData": { "description": "Service name to be exposed", "displayName": "Service Name in registry", "isRequired": true } }, { "id": "poolName", "type": "STRING", "value": "/Common/eurekaSamplePool", "metaData": { "description": "Pool Name to be created", "displayName": "BIG-IP Pool Name", "isRequired": true } }, { "id": "poolType", "type": "STRING", "value": "round-robin", "metaData": { "description": "load-balancing-mode", "displayName": "Load Balancing Mode", "isRequired": true, "uiType": "dropdown", "uiHints": { "list": { "dataList": [ "round-robin", "least-connections-member", "least-connections-node" ] } } } }, { "id": "healthMonitor", "type": "STRING", "value": "none", "metaData": { "description": "Health Monitor", "displayName": "Health Monitor", "isRequired": true, "uiType": "dropdown", "uiHints": { "list": { "dataList": [ "tcp", "udp", "http", "none" ] } } } } ], "dataProperties": [ { "id": "pollInterval", "type": "NUMBER", "value": 30, "metaData": { "description": "Interval of polling from BIG-IP to registry, 30s by default.", "displayName": "Polling Invertal", "isRequired": false } } ], "configurationProcessorReference": { "link": "https://localhost/mgmt/shared/iapp/processors/msdaeurekaConfig" }, "auditProcessorReference": { "link": "https://localhost/mgmt/shared/iapp/processors/msdaeurekaEnforceConfiguredAudit" }, "audit": { "intervalSeconds": 60, "policy": "ENFORCE_CONFIGURED" }, "configProcessorTimeoutSeconds": 30, "statsProcessorTimeoutSeconds": 15, "configProcessorAffinity": { "processorPolicy": "LOAD_BALANCED", "affinityProcessorReference": { "link": "https://localhost/mgmt/shared/iapp/processors/affinity/load-balanced" } }, "state": "TEMPLATE" } ``` Post the block through REST API using curl. ```bash curl -sk -X POST -d @block.json https://bigip_mgmt_ip:8443/mgmt/shared/iapp/blocks ```