Skip to content

Commit

Permalink
Updated deploy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MirolimMajidov committed Jul 10, 2024
1 parent 36c48ef commit 2042741
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions K8s/Commands/RestartServices.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
echo "Restarting Jobs services..."
bash StopServices.bat
bash StartServices.bat
bash StopServices.sh
bash StartServices.sh
1 change: 0 additions & 1 deletion K8s/Commands/StartServices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ kubectl apply -f ../PaymentService.yaml
kubectl apply -f ../OcelotApiGatewayService.yaml

echo "Completed"
timeout /t 10 /nobreak
1 change: 0 additions & 1 deletion K8s/Commands/StopServices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ kubectl delete -f ../Payment_MongoDB.yaml
kubectl delete -f ../Payment_RedisDB.yaml

echo "Completed"
timeout /t 10 /nobreak
2 changes: 0 additions & 2 deletions K8s/IdentityService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ spec:
containers:
- name: identity-api
image: mirolimmajidov/identity.api:latest
ports:
- containerPort: 80
env:
- name: ASPNETCORE_ENVIRONMENT
value: Production
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ You should be able to browse each service of the application by using the below
</ul>

### Running the services on Kubernetes (K8s)
Before running the Jobs service, you need to make sure you have enabled the Kubernetes from the Docker Desktop. Then you can run one of the scripts of commands below from the main Jobs repository's `K8s\Commands` directory and get started with the `Jobs` services immediately:
Before running the Jobs services, you need to make sure you have enabled the Kubernetes from the Docker Desktop. Then you can run one of the scripts of commands below from the main Jobs repository's `K8s\Commands` directory and get started with the `Jobs` services immediately:
<ul>
<li>StartServices.bat - For starting all Jobs services.</li>
<li>StopServices.bat - For stopping all Jobs services.</li>
<li>RestartServices.bat - For stopping and starting all Jobs services.</li>
<li>StartServices.sh - For starting all Jobs services.</li>
<li>StopServices.sh - For stopping all Jobs services.</li>
<li>RestartServices.sh - For stopping and starting all Jobs services.</li>
</ul>

You should be able to browse each service of the application by using the below URLs:
Expand Down

0 comments on commit 2042741

Please sign in to comment.