Skip to content

Commit f77bad8

Browse files
authored
Merge pull request #1 from yangcao77/update-outerloop
remove outerloop specific term
2 parents bcc068f + 401dbe7 commit f77bad8

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
.project
33
.settings
44
target
5-
.odo/env
5+
.odo/env
6+
.idea
7+
.DS_Store
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,16 @@ spec:
2323
limits:
2424
memory: "1024Mi"
2525
cpu: "500m"
26+
---
27+
kind: Service
28+
apiVersion: v1
29+
metadata:
30+
name: my-java-springboot-svc
31+
spec:
32+
ports:
33+
- name: http-8081
34+
port: 8081
35+
protocol: TCP
36+
targetPort: 8081
37+
selector:
38+
app: java-springboot-app

devfile.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ parent:
1515
id: java-springboot
1616
registryUrl: "https://registry.devfile.io"
1717
components:
18-
- name: outerloop-build
18+
- name: image-build
1919
image:
2020
imageName: java-springboot-image:latest
2121
dockerfile:
2222
uri: docker/Dockerfile
2323
buildContext: .
2424
rootRequired: false
25-
- name: outerloop-deploy
25+
- name: kubernetes-deploy
2626
attributes:
2727
deployment/replicas: 1
2828
deployment/cpuLimit: "100m"
@@ -31,14 +31,18 @@ components:
3131
deployment/memoryRequest: 180Mi
3232
deployment/container-port: 8081
3333
kubernetes:
34-
uri: outerloop-deploy.yaml
34+
uri: deploy.yaml
35+
endpoints:
36+
- name: http-8081
37+
targetPort: 8081
38+
path: /
3539
commands:
3640
- id: build-image
3741
apply:
38-
component: outerloop-build
42+
component: image-build
3943
- id: deployk8s
4044
apply:
41-
component: outerloop-deploy
45+
component: kubernetes-deploy
4246
- id: deploy
4347
composite:
4448
commands:

0 commit comments

Comments
 (0)