Skip to content

k8s - Port 7080 not exposed #2328

@alexmilowski

Description

@alexmilowski

When running on Kubernetes, the servers can't talk unless you add a hostPort to expose port 7080. This is generally a practice that should be avoided.

The problem is that 7080 is not exposed in the default docker image:

dgraph/contrib/nightly/Dockerfile

Added another EXPOSE directive fixes this.

I created this for testing and the k8s deployment works without adding the hostPort:

FROM dgraph/dgraph:latest

EXPOSE 7080

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions