Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product service #6

Merged
merged 7 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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