Skip to content

Commit

Permalink
update workflow for ex-5
Browse files Browse the repository at this point in the history
  • Loading branch information
takara9 committed Jan 6, 2024
1 parent 3943a31 commit 3a7a181
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
docker images
- name: Deploy to minikube
run:
kubectl apply -f deploy-to-minikube.yaml
kubectl apply -f ./3.5_app_development/ex-5-java/deployment.yaml
- name: Test service URLs
run: |
minikube service list
minikube service example --url
echo "------------------opening the service------------------"
curl $(minikube service example --url)
curl $(minikube service example --url)
21 changes: 21 additions & 0 deletions 3.5_app_development/ex-5-java/deplyment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ex-5
labels:
app: ex-5
spec:
replicas: 3
selector:
matchLabels:
app: ex-5
template:
metadata:
labels:
app: ex-5
spec:
containers:
- name: java-app
image: ghcr.io/takara9/ex5:1.1
ports:
- containerPort: 8080

0 comments on commit 3a7a181

Please sign in to comment.