diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 371c69a..a428298 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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) \ No newline at end of file + curl $(minikube service example --url) + \ No newline at end of file diff --git a/3.5_app_development/ex-5-java/deplyment.yaml b/3.5_app_development/ex-5-java/deplyment.yaml new file mode 100644 index 0000000..cfea869 --- /dev/null +++ b/3.5_app_development/ex-5-java/deplyment.yaml @@ -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 \ No newline at end of file