kerberos-io / factory

An enterprise ready, resilient and horizontal scalable solution for large video landscapes.
http://doc.kerberos.io/factory/first-things-first/
27 stars 9 forks source link

Couldn't connect to the api when trying to sign in #14

Closed kennedy-dan closed 1 year ago

kennedy-dan commented 1 year ago

i am getting an error "Couldn't connect to the API" when trying to sign in for the first time

dtrapeznikov commented 1 year ago

Had to deal with this problem and found that thread. For those who're still struggling with it - try changing the MODGODB_HOST variable in mongodb.config.yaml configmap to mongodb.mongodb.svc.cluster.local

dtrapeznikov commented 1 year ago

Quick note: better add the environment variable to the kerberos factory deployment.yaml - name: MONGODB_HOST value: mongodb.mongodb.svc.cluster.local It's important, because it seems that the kerberos agents created by this factory use the variable from the configmap mentioned above. They apparently add the svc.cluster.local part by themselves, so if you add the full url to the configmap - the agents won't be able to access the mongodb and will crash