https://rancher.com/ logo
Title
e

echoing-ability-7881

09/13/2022, 8:05 AM
Hi guys, i want to know one thing My application and database are running in same cluster, i want to connect my database with application how to do it in rancher.
a

agreeable-oil-87482

09/13/2022, 11:35 AM
This is not a Rancher question as such, more of a K8s question. Have you done this before in K8s?
e

echoing-ability-7881

09/14/2022, 6:11 AM
Hi David i make a cluster in racnher, in my workload we have one application running on and in same cluster i do have database as well i want to connect both because still connectivity is not making in between
a

agreeable-oil-87482

09/14/2022, 10:57 AM
How are you referencing the database workload?
e

echoing-ability-7881

09/14/2022, 11:10 AM
so i have mongodb workload on docker image
mongo:version name
a

agreeable-oil-87482

09/14/2022, 12:07 PM
And you're exposing it via a service object?
e

echoing-ability-7881

09/14/2022, 12:13 PM
let me explain: i have cluster A : where i have a app name : FayazAPP i have mongodb name of that is FAYAZDB ____________ i want to connection both together _______________ i create mongo and app in a same cluster now in connection i give the name of mongo db but my add is not connected with my database
i give the name of the database as well in env variable