Files
kubevela/docs/examples/core-definitions/component/webservice.yaml
T
Tianxin DongandGitHub 408c893cff Feat: add port name in webservice (#3110)
* Feat: add port name in webservice

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>

* fix port name in container

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>

* generate port name if not specified

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
2022-01-18 18:59:48 +08:00

28 lines
632 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: webservice-app
spec:
components:
- name: express-server
type: webservice
properties:
labels:
test-label: test-value
image: crccheck/hello-world
exposeType: NodePort
ports:
- port: 8000
- port: 8001
name: exposeport1
protocol: UDP
expose: true
- port: 8002
protocol: UDP
expose: true
volumeMounts:
pvc:
- name: my-mount
mountPath: /test
claimName: myclaim