[英]How to keep stats for a node.js app deployed on google cloud app engine and keep my data persistent
[英]Google cloud access mongo deployed on compute engine from app deployed on kubernetes engine
好的,我設法找到一種解決方案,不確定是否最好。
首先,我們添加防火牆規則以允許mongodb通信
gcloud compute firewall-rules create allow-mongodb --allow tcp:27017
然后我們使用外部ip從kubernetes實例連接到mongodb
mongodb:root:passwd@<ip1>:27017,<ip2>:27017/devdb?replicaSet=rs0
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.