File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed
Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ parent:
2121 id : python
2222 registryUrl : ' https://registry.devfile.io'
2323components :
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 : /
4145commands :
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 :
You can’t perform that action at this time.
0 commit comments