Skip to content

Commit

Permalink
Merge pull request #992 from Michkov/inlined-deployment
Browse files Browse the repository at this point in the history
add kube inline component
  • Loading branch information
psturc authored Apr 11, 2023
2 parents 6ea3653 + d48fb83 commit 34da5a8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKDIR /work/

COPY --from=builder /work/target/hacbs-test.jar /deployments

EXPOSE 8080
EXPOSE 8081

ENV AB_JOLOKIA_OFF=""
ENV JAVA_APP_JAR="/deployments/hacbs-test.jar"
43 changes: 43 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,46 @@ components:
uri: Dockerfile
buildContext: .
rootRequired: false
- name: outerloop-deploy
kubernetes:
inlined: |-
kind: Deployment
apiVersion: apps/v1
metadata:
name: hacbs-jvm-build-test-project
spec:
replicas: 1
selector:
matchLabels:
app: hacbs-jvm-build-test-project
template:
metadata:
labels:
app: hacbs-jvm-build-test-project
spec:
containers:
- name: hacbs-jvm-build-test-project
image: hacbs-jvm-build-test-project:latest
ports:
- name: http
containerPort: 8081
protocol: TCP
resources:
limits:
memory: "1024Mi"
cpu: "500m"
commands:
- id: build-image
apply:
component: image-build
- id: deployk8s
apply:
component: outerloop-deploy
- id: deploy
composite:
commands:
- build-image
- deployk8s
group:
kind: deploy
isDefault: true

0 comments on commit 34da5a8

Please sign in to comment.