Hi Guangrong, Sorry for the delayed response. The assignment to “9101:0” is valid under OOM deploy as the VM port doesn’t apply in K8S cluster. The K8S plugin uses 0 as identification for clusterIP mapping and 9101 is set as internal port. For exposing the service outside of K8S cluster, NodePort are used (in that case the 0 will be replaced by the required nodePort value to be set - the k8s plugin creates the underlying service definition and DNS setting required in this case).
For Holmes, I believe clusterip:port should suffice and any service requiring to connect to holmes can invoke based on servicename:<port>. As for supporting multiple ports – yes that can be defined in the blueprint. I noticed an error related to port assignments on Holmes blueprints and submitted a patch - https://gerrit.onap.org/r/#/c/66813/1 , included the new port – 9104 you noted as well. Please check and let me know if any questions. Thanks, Vijay From: onap-discuss@lists.onap.org <onap-discuss@lists.onap.org> On Behalf Of Guangrong Fu Sent: Thursday, September 13, 2018 8:58 PM To: VENKATESH KUMAR, VIJAY <vv7...@att.com> Cc: LUCAS, JACK <jflu...@research.att.com>; onap-discuss@lists.onap.org; steven20...@gmail.com Subject: [onap-discuss] 答复: [dcae][holmes] How to Add a New Port Mapping to Existing Docker Containers? Vijay, Jack's on vacation. Do you have any idea on this? Thanks, Guangrong 原始邮件 发件人:GuangrongFu <steven20...@gmail.com<mailto:steven20...@gmail.com>> 收件人:LUCAS, JACK <jflu...@research.att.com<mailto:jflu...@research.att.com>> 抄送人:VENKATESH KUMAR, VIJAY <vv7...@att.com<mailto:vv7...@att.com>>onap-discuss <onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>>付光荣10144542; 日 期 :2018年09月12日 16:24 主 题 :[dcae][holmes] How to Add a New Port Mapping to Existing Docker Containers? Hi Jack, I need to map a new port to the Holmes rule management docker container. To my understanding, I should update the k8s-holmes-rules.yaml-template (https://gerrit.onap.org/r/gitweb?p=dcaegen2/platform/blueprints.git;a=blob;f=blueprints/k8s-holmes-rules.yaml-template;h=16bd515fc24214c87419fcd7d290e0383e089890;hb=refs/heads/master<https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.onap.org_r_gitweb-3Fp-3Ddcaegen2_platform_blueprints.git-3Ba-3Dblob-3Bf-3Dblueprints_k8s-2Dholmes-2Drules.yaml-2Dtemplate-3Bh-3D16bd515fc24214c87419fcd7d290e0383e089890-3Bhb-3Drefs_heads_master&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=9NM2-HxV3lvkypE6I9QrO7jAaGdfWmUHrxYdcOVEq4M&s=q7esLylW1ZaDhZrbIvn4NbZsSee8pEMRYMOiY8fKsds&e=>). Now what's confusing me is that in that template, the existing mapping is 9101:0. That means Port 9101 of the host is mapped to Port 0 of the docker container. Theoretically, the mapping should be 9101:9101. Is there anything wrong from my understanding? Besides, I want to set up a 9104:9104 mapping, shall I add it to the docker_config.ports section? Thanks in advance. BR, Guangrong -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12440): https://lists.onap.org/g/onap-discuss/message/12440 Mute This Topic: https://lists.onap.org/mt/25648254/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-