github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/trait/nocalhost.eg.md (about)

     1  ```yaml
     2  apiVersion: core.oam.dev/v1beta1
     3  kind: Application
     4  metadata:
     5    name: bookinfo
     6  spec:
     7    components:
     8      - name: productpage
     9        type: webservice
    10        properties:
    11          image: nocalhost-docker.pkg.coding.net/nocalhost/bookinfo/productpage:latest
    12          port: 9080
    13        traits:
    14          - type: nocalhost
    15            properties:
    16              port: 9080
    17              gitUrl: https://github.com/nocalhost/bookinfo-productpage.git
    18              image: nocalhost-docker.pkg.coding.net/nocalhost/dev-images/python:3.7.7-slim-productpage-with-pydevd
    19              shell: "bash"
    20              workDir: "/opt/work"
    21              resources:
    22                limits:
    23                  memory: 1Gi
    24                  cpu: "1"
    25                requests:
    26                  memory: 512Mi
    27                  cpu: "0.5"
    28              debug:
    29                remoteDebugPort: 9009
    30              hotReload: true
    31              sync:
    32                type: send
    33                filePattern:
    34                  - ./
    35                ignoreFilePattern:
    36                  - .git
    37                  - .idea
    38              command:
    39                run:
    40                  - sh
    41                  - run.sh
    42                debug:
    43                  - sh
    44                  - debug.sh
    45              env:
    46                - name: "foo"
    47                  value: "bar"
    48              portForward:
    49                - 39080:9080
    50  ```