mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-14 13:26:44 +00:00
* vela show support show the paramters of KUBE model ComponentDefinition * fix * fix fix * enchance test case and add function in show -web fmt and vet fix fix522 * add resolve for kubedef type trait in reconcil process * fix StoreOpenAPISchema args para and ret para * fix GetCapabilityObject uncover
41 lines
1019 B
YAML
41 lines
1019 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: ComponentDefinition
|
|
metadata:
|
|
name: kube-worker
|
|
namespace: default
|
|
spec:
|
|
workload:
|
|
definition:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
schematic:
|
|
kube:
|
|
template:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: nginx
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
ports:
|
|
- containerPort: 80
|
|
parameters:
|
|
- name: image
|
|
required: true
|
|
type: string
|
|
fieldPaths:
|
|
- "spec.template.spec.containers[0].image"
|
|
- name: port
|
|
required: true
|
|
type: string
|
|
fieldPaths:
|
|
- "spec.template.spec.containers[0].ports[0].containerPort"
|
|
description: "the specific container port num which can accept external request."
|