From 401dbe77d889b7323292e250f0fa41bd047ce99b Mon Sep 17 00:00:00 2001 From: Stephanie Date: Thu, 15 Sep 2022 14:05:32 -0400 Subject: [PATCH 1/2] remove outerloop specific term Signed-off-by: Stephanie --- .gitignore | 4 +++- outerloop-deploy.yaml => deploy.yaml | 13 +++++++++++++ devfile.yaml | 14 +++++++++----- 3 files changed, 25 insertions(+), 6 deletions(-) rename outerloop-deploy.yaml => deploy.yaml (73%) diff --git a/.gitignore b/.gitignore index ab5f7023..5fe52b5c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ .project .settings target -.odo/env \ No newline at end of file +.odo/env +.idea +.DS_Store \ No newline at end of file diff --git a/outerloop-deploy.yaml b/deploy.yaml similarity index 73% rename from outerloop-deploy.yaml rename to deploy.yaml index 89e587ed..378d8e29 100644 --- a/outerloop-deploy.yaml +++ b/deploy.yaml @@ -23,3 +23,16 @@ spec: limits: memory: "1024Mi" cpu: "500m" +--- +kind: Service +apiVersion: v1 +metadata: + name: my-java-springboot-svc +spec: +ports: + - name: http-8081 + port: 8081 + protocol: TCP + targetPort: 8081 +selector: + app: java-springboot-app \ No newline at end of file diff --git a/devfile.yaml b/devfile.yaml index be7b1515..d98f257d 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -15,14 +15,14 @@ parent: id: java-springboot registryUrl: "https://registry.devfile.io" components: - - name: outerloop-build + - name: image-build image: imageName: java-springboot-image:latest dockerfile: uri: docker/Dockerfile buildContext: . rootRequired: false - - name: outerloop-deploy + - name: kubernetes-deploy attributes: deployment/replicas: 1 deployment/cpuLimit: "100m" @@ -31,14 +31,18 @@ components: deployment/memoryRequest: 180Mi deployment/container-port: 8081 kubernetes: - uri: outerloop-deploy.yaml + uri: deploy.yaml + endpoints: + - name: http-8081 + targetPort: 8081 + path: / commands: - id: build-image apply: - component: outerloop-build + component: image-build - id: deployk8s apply: - component: outerloop-deploy + component: kubernetes-deploy - id: deploy composite: commands: From b76cfc10a2211c7bf7d369407a9141c7ed6e5814 Mon Sep 17 00:00:00 2001 From: Stephanie Cao Date: Mon, 31 Oct 2022 15:11:24 -0400 Subject: [PATCH 2/2] Update devfile.yaml --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index d98f257d..760fa8fd 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,7 +1,7 @@ schemaVersion: 2.2.0 metadata: name: java-springboot - version: 1.1.0 + version: 1.2.0 attributes: alpha.dockerimage-port: 8081 displayName: Java Spring Boot