Skip to content

Commit

Permalink
Merge pull request #6 from redbadger/product-service
Browse files Browse the repository at this point in the history
Product service
  • Loading branch information
StuartHarris authored Dec 22, 2023
2 parents 30d372d + 46ef508 commit b757584
Show file tree
Hide file tree
Showing 15 changed files with 2,893 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
key: inventory_service_database_url
readinessProbe:
httpGet:
path: /actuator/health
path: /health
port: 8082
initialDelaySeconds: 20
- name: cloud-sql-proxy
Expand All @@ -49,4 +49,3 @@ spec:
- {{ .Values.sql.instanceConnectionName }}
securityContext:
runAsNonRoot: true

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
value: {{ .Values.kafka.url }}
readinessProbe:
httpGet:
path: /actuator/health
path: /health
port: 8081
initialDelaySeconds: 20
- name: cloud-sql-proxy
Expand All @@ -52,4 +52,3 @@ spec:
- {{ .Values.sql.instanceConnectionName }}
securityContext:
runAsNonRoot: true

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: 2 additions & 0 deletions rust-containers-k8s/product-service/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export PORT=
export GCP_PROJECT_ID=
Loading

0 comments on commit b757584

Please sign in to comment.