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

     1  ```yaml
     2  apiVersion: core.oam.dev/v1beta1
     3  kind: Application
     4  metadata:
     5    name: application-with-hostalias
     6  spec:
     7    components:
     8      - name: busybox-runner
     9        type: worker
    10        properties:
    11          image: busybox
    12          cmd:
    13            - sleep
    14            - '1000'
    15        traits:
    16          - type: hostalias
    17            properties:
    18              hostAliases:
    19                - ip: 127.0.0.1
    20                  hostnames:
    21                    - localname
    22                    - locals
    23  ```