Skip to content

Commit

Permalink
listen on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartHarris committed Dec 21, 2023
1 parent 50e5294 commit 4e2e392
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ spec:
value: {{ .Values.gcp.projectId }}
readinessProbe:
httpGet:
path: /actuator/health
path: /health
port: 8080
initialDelaySeconds: 20

2 changes: 1 addition & 1 deletion rust-containers-k8s/inventory-service/src/api/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub async fn create(config: Config, pool: Pool<Postgres>) -> anyhow::Result<()>
.layer(TraceLayer::new_for_http())
.with_state(state);

let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), config.port);
let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), config.port);

let listener = TcpListener::bind(&socket).await.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion rust-containers-k8s/product-service/src/api/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub async fn create(config: Config, db: FirestoreDb) -> anyhow::Result<()> {
.layer(TraceLayer::new_for_http())
.with_state(state);

let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), config.port);
let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), config.port);

let listener = TcpListener::bind(&socket).await.unwrap();

Expand Down

0 comments on commit 4e2e392

Please sign in to comment.