mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-23 14:36:48 +00:00
* 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>
28 lines
632 B
YAML
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
|