github.com/oam-dev/kubevela@v1.9.11/docs/examples/nocalhost/app-bookinfo.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: bookinfo 5 spec: 6 components: 7 - name: productpage 8 type: webservice 9 properties: 10 image: nocalhost-docker.pkg.coding.net/nocalhost/bookinfo/productpage:latest 11 port: 9080 12 traits: 13 - type: nocalhost 14 properties: 15 port: 9080 16 gitUrl: https://github.com/nocalhost/bookinfo-productpage.git 17 image: nocalhost-docker.pkg.coding.net/nocalhost/dev-images/python:3.7.7-slim-productpage-with-pydevd 18 shell: "bash" 19 workDir: "/opt/work" 20 resources: 21 limits: 22 memory: 1Gi 23 cpu: "1" 24 requests: 25 memory: 512Mi 26 cpu: "0.5" 27 debug: 28 remoteDebugPort: 9009 29 hotReload: true 30 sync: 31 type: send 32 filePattern: 33 - ./ 34 ignoreFilePattern: 35 - .git 36 - .idea 37 command: 38 run: 39 - sh 40 - run.sh 41 debug: 42 - sh 43 - debug.sh 44 env: 45 - name: "foo" 46 value: "bar" 47 portForward: 48 - 39080:9080 49 50 - name: authors 51 type: webservice 52 properties: 53 image: nocalhost-docker.pkg.coding.net/nocalhost/bookinfo/authors:latest 54 port: 9080 55 traits: 56 - type: nocalhost 57 properties: 58 port: 9080 59 gitUrl: https://github.com/nocalhost/bookinfo-authors.git 60 image: go 61 debug: 62 remoteDebugPort: 9009 63 64 - name: details 65 type: webservice 66 properties: 67 image: nocalhost-docker.pkg.coding.net/nocalhost/bookinfo/details:latest 68 port: 9080 69 traits: 70 - type: nocalhost 71 properties: 72 port: 9080 73 gitUrl: https://github.com/nocalhost/bookinfo-details.git 74 image: nocalhost-docker.pkg.coding.net/nocalhost/dev-images/ruby:2.7.1-slim 75 76 - name: ratings 77 type: webservice 78 properties: 79 image: nocalhost-docker.pkg.coding.net/nocalhost/bookinfo/ratings:latest 80 port: 9080 81 traits: 82 - type: nocalhost 83 properties: 84 port: 9080 85 gitUrl: https://github.com/nocalhost/bookinfo-ratings.git 86 image: nocalhost-docker.pkg.coding.net/nocalhost/dev-images/node:12.18.1-slim 87 88 - name: reviews 89 type: webservice 90 properties: 91 image: nocalhost-docker.pkg.coding.net/nocalhost/bookinfo/reviews:latest 92 port: 9080 93 traits: 94 - type: nocalhost 95 properties: 96 port: 9080 97 gitUrl: https://github.com/nocalhost/bookinfo-reviews.git 98 image: nocalhost-docker.pkg.coding.net/nocalhost/dev-images/java:latest 99 debug: 100 remoteDebugPort: 5005