Skip to content

Confused by network behaviour #590

@ashic

Description

@ashic

Hi,
I'm trying out singularity, and so far it looks good. I'm trying to sort out networking, but it's baffling me:

  • I've created a single instance service that's not load balanced. In deploy, I specify docker: tutum/hello-world , bridge network with the following:
Container port type: Literal, 80
Host port type: Literal, 31010

When I do this, I get a response back from hostname:80, but not from hostname:31010. I should add that --resources=ports:[8000-8050,31000-32000] is specified when launching the slave.

  • I'd really like to be able to hit a service endpoint instead of slave machines. I see that if I select "load balanced" when creating the request, I get a service base path (e.g. /singularity/api/v2) option when deploying. However, I've not been able to get this to work. Do I need something else set up for this to work? I don't have mesos-dns setup. Will that help? Will https://github.com/CiscoCloud/mesos-consul be useful for this as well?
  • When selecting Bridge Network and adding a Docker Port Mapping, I see that using
Container Port Type: Literal, 80
Host Port Type: From Offer
Container Port: 0
Protocol: tcp

gives me the following error:

There was a problem: Index of port resource for hostPort must be between 0 and -1 (inclusive)

Is this expected? Is there some documentation as to how docker networking relates to Singularity?

Thanks,
Ashic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions