You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just started using DevSpace which seems really nice!!.
I currently migrating from Docker Compose with 10 services (Redis, MongoDB, NodeJS, Caddy etc).
I am trying to configure a MongoDB ReplicaSet Deployment using the Component Chart and our existing dockerfiles.
So far, I can get MongoDB to build and deploy fine on a K3D development cluster. The last remaining challenge is accessing the database server from outside the cluster.
From what I can tell, there appears to be no way to configure a nodePort for a service. You can set the type but cannot specify a port. It is always a random port.
If I try to add nodePort to the config, I get the following error - line 7: field nodePort not found in type latest.ServicePortConfig
So for now, I stopped using the component chart and switched to using manifests directly. Using manifests, I was able to set a nodePort on the service and can access the database from the host machine.
Is there a way to specify a nodePort?
Regards,
Tarek
The text was updated successfully, but these errors were encountered:
Hi All,
I have just started using DevSpace which seems really nice!!.
I currently migrating from Docker Compose with 10 services (Redis, MongoDB, NodeJS, Caddy etc).
I am trying to configure a MongoDB ReplicaSet Deployment using the Component Chart and our existing dockerfiles.
So far, I can get MongoDB to build and deploy fine on a K3D development cluster. The last remaining challenge is accessing the database server from outside the cluster.
From what I can tell, there appears to be no way to configure a nodePort for a service. You can set the type but cannot specify a port. It is always a random port.
If I try to add nodePort to the config, I get the following error - line 7: field nodePort not found in type latest.ServicePortConfig
So for now, I stopped using the component chart and switched to using manifests directly. Using manifests, I was able to set a nodePort on the service and can access the database from the host machine.
Is there a way to specify a nodePort?
Regards,
Tarek
The text was updated successfully, but these errors were encountered: