This iApp is an example of MSDA for etcdv2, including an audit processor.
Check the modules dependency:
$ 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:
$ cd ../..
$ npm run build
Build output is an RPM package
If you are using BIG-IP, install f5-iapplx-msda-zk 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 the REST API to work with BIG-IP with f5-iapplx-msda-zk 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 .
{
"name": "msdazk",
"inputProperties": [
{
"id": "zkEndpoint",
"type": "STRING",
"value": "1.1.1.1:2181, 1.1.1.2:2181",
"metaData": {
"description": "zk endpoint list",
"displayName": "zk endpoints",
"isRequired": true
}
},
{
"id": "applicationType",
"type": "STRING",
"value": "generic",
"metaData": {
"description": "Application Type, for example DCITS-DUBBO for core banking system",
"displayName": "Application Type",
"isRequired": true,
"uiType": "dropdown",
"uiHints": {
"list": {
"dataList": [
"dcits-dubbo",
"generic"
]
}
}
}
},
{
"id": "serviceName",
"type": "STRING",
"value": "/services/http",
"metaData": {
"description": "Service name to be exposed",
"displayName": "Service Name in registry",
"isRequired": false
}
},
{
"id": "poolName",
"type": "STRING",
"value": "/Common/zkSamplePool",
"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/msdazkConfig"
},
"auditProcessorReference": {
"link": "https://localhost/mgmt/shared/iapp/processors/msdazkEnforceConfiguredAudit"
},
"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.
curl -sk -X POST -d @block.json https://bigip_mgmt_ip:8443/mgmt/shared/iapp/blocks