Hi, Depends on how you are running your cluster (microk8s, minikube, etc) but could you try adding an entry to your /etc/hosts file for the ip of either the pod or the k8s node.
We do have an exposed port for dr-node (30494) but this will be disabled in the next release. If the above doesn't work you could try some port forwarding on your local machine to target this port also. [cid:dde1b008-fd78-462e-9edd-8b091cabc581] Fiachra Corcoran GFTL EST Ireland [email protected] Ericsson Software Technology Ericsson Software Campus Athlone Ireland N37 PV44 ________________________________ From: [email protected] <[email protected]> on behalf of Calamita Agostino via lists.onap.org <[email protected]> Sent: 08 March 2022 12:21 To: [email protected] <[email protected]> Subject: [onap-discuss] data-router - publish file from application outside the k8s cluster Hi all, I need to use dmaap data-router to test a publish/subscriber use case for transfer files. So I created a Feed with Bus Controller with one pub test0001:test0001 on that Feed. Now I publish to dmaap-dr-prov a sample file with curl command: ubuntu@onap-control:~$ curl -k -X PUT --user "test0001:test0001" -H "Content-Type:application/octet-stream" -H "X-DMAAP-DR-META:{\"filetype\":\"txt\"}" --data-binary @sampleFile.txt --post301 –location https://192.168.64.5:30269/publish/1/sampleFile.txt But I get: curl: (6) Could not resolve host: dmaap-dr-node I see that dmaap-dr-prov sends a redirect to 'https://dmaap-dr-node:8443’, but this address and this porti is visible only inside kubernetes cluster. Is there a way to send a file from an application outside the onap K8S ? Thanks. This is the output of curl -v command: … * upload completely sent off: 12 out of 12 bytes < HTTP/1.1 301 Moved Permanently < Location: https://dmaap-dr-node:8443/publish/1/sampleFile.txt < Content-Length: 0 < Server: Jetty(9.4.41.v20210516) < * Connection #0 to host 192.168.64.5 left intact * Issue another request to this URL: 'https://dmaap-dr-node:8443/publish/1/sampleFile.txt' * Could not resolve host: dmaap-dr-node * Closing connection 1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#23905): https://lists.onap.org/g/onap-discuss/message/23905 Mute This Topic: https://lists.onap.org/mt/89635324/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
