github.com/oam-dev/kubevela@v1.9.11/docs/examples/core-definitions/component/webservice.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: webservice-app 5 spec: 6 components: 7 - name: express-server 8 type: webservice 9 properties: 10 labels: 11 test-label: test-value 12 image: crccheck/hello-world 13 exposeType: NodePort 14 ports: 15 - port: 8000 16 - port: 8001 17 name: exposeport1 18 protocol: UDP 19 expose: true 20 - port: 8002 21 protocol: UDP 22 expose: true 23 volumeMounts: 24 pvc: 25 - name: my-mount 26 mountPath: /test 27 claimName: myclaim 28 - name: my-mount 29 mountPath: /test2 30 subPath: /sub 31 claimName: myclaim