Skip to content
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
4 changes: 3 additions & 1 deletion kubernetes/base/deployments/accounts-service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
- name: accounts-service
image: ghcr.io/speedscale/microsvc/accounts-service:v1.4.0
imagePullPolicy: Always
command: ["/bin/sh", "-c"]
args: ["exec java $JAVA_OPTS org.springframework.boot.loader.launch.JarLauncher"]
ports:
- containerPort: 8080
name: http
Expand Down Expand Up @@ -80,4 +82,4 @@ spec:
initContainers:
- name: wait-for-postgres
image: postgres:15-alpine
command: ['sh', '-c', 'echo "[accounts-service] Waiting for PostgreSQL..."; until pg_isready -h postgres -p 5432 -q; do sleep 1; done; echo "[accounts-service] PostgreSQL ready!"']
command: ['sh', '-c', 'echo "[accounts-service] Waiting for PostgreSQL..."; until pg_isready -h postgres -p 5432 -q; do sleep 1; done; echo "[accounts-service] PostgreSQL ready!"']
4 changes: 3 additions & 1 deletion kubernetes/base/deployments/api-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
- name: api-gateway
image: ghcr.io/speedscale/microsvc/api-gateway:v1.4.0
imagePullPolicy: Always
command: ["/bin/sh", "-c"]
args: ["exec java $JAVA_OPTS org.springframework.boot.loader.launch.JarLauncher"]
ports:
- containerPort: 8080
name: http
Expand Down Expand Up @@ -70,4 +72,4 @@ spec:
initContainers:
- name: wait-for-services
image: busybox:1.35
command: ['sh', '-c', 'echo "[api-gateway] Waiting for microservices..."; services="user-service:80 accounts-service:80 transactions-service:80"; for service in $services; do while ! nc -z ${service%:*} ${service#*:}; do echo "[api-gateway] Waiting for $service..."; sleep 1; done; echo "[api-gateway] ✓ $service ready"; done; echo "[api-gateway] All services ready!"']
command: ['sh', '-c', 'echo "[api-gateway] Waiting for microservices..."; services="user-service:80 accounts-service:80 transactions-service:80"; for service in $services; do while ! nc -z ${service%:*} ${service#*:}; do echo "[api-gateway] Waiting for $service..."; sleep 1; done; echo "[api-gateway] ✓ $service ready"; done; echo "[api-gateway] All services ready!"']
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
- name: transactions-service
image: ghcr.io/speedscale/microsvc/transactions-service:v1.4.0
imagePullPolicy: Always
command: ["/bin/sh", "-c"]
args: ["exec java $JAVA_OPTS org.springframework.boot.loader.launch.JarLauncher"]
ports:
- containerPort: 8080
name: http
Expand Down Expand Up @@ -75,4 +77,4 @@ spec:
initContainers:
- name: wait-for-postgres
image: postgres:15-alpine
command: ['sh', '-c', 'echo "[transactions-service] Waiting for PostgreSQL..."; until pg_isready -h postgres -p 5432 -q; do sleep 1; done; echo "[transactions-service] PostgreSQL ready!"']
command: ['sh', '-c', 'echo "[transactions-service] Waiting for PostgreSQL..."; until pg_isready -h postgres -p 5432 -q; do sleep 1; done; echo "[transactions-service] PostgreSQL ready!"']
Loading