Skip to content

Commit 7c630e2

Browse files
authored
Merge pull request #11 from maysunfaisal/update-svc-1
Update outerloop for svc, endpoint
2 parents 6868432 + 1ed63ac commit 7c630e2

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,16 @@ spec:
2323
limits:
2424
memory: "128Mi"
2525
cpu: "500m"
26+
---
27+
kind: Service
28+
apiVersion: v1
29+
metadata:
30+
name: my-python
31+
spec:
32+
ports:
33+
- name: http-8081
34+
port: 8081
35+
protocol: TCP
36+
targetPort: 8081
37+
selector:
38+
app: python-app

devfile.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ parent:
2121
id: python
2222
registryUrl: 'https://registry.devfile.io'
2323
components:
24-
- name: outerloop-build
24+
- name: image-build
2525
image:
2626
imageName: python-image:latest
2727
dockerfile:
2828
uri: docker/Dockerfile
2929
buildContext: .
3030
rootRequired: false
31-
- name: outerloop-deploy
31+
- name: kubernetes-deploy
3232
attributes:
3333
deployment/replicas: 1
3434
deployment/cpuLimit: '100m'
@@ -37,14 +37,18 @@ components:
3737
deployment/memoryRequest: 50Mi
3838
deployment/container-port: 8081
3939
kubernetes:
40-
uri: outerloop-deploy.yaml
40+
uri: deploy.yaml
41+
endpoints:
42+
- name: http-8081
43+
targetPort: 8081
44+
path: /
4145
commands:
4246
- id: build-image
4347
apply:
44-
component: outerloop-build
48+
component: image-build
4549
- id: deployk8s
4650
apply:
47-
component: outerloop-deploy
51+
component: kubernetes-deploy
4852
- id: deploy
4953
composite:
5054
commands:

0 commit comments

Comments
 (0)