fix apiversion (#1056)
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
This commit is contained in:
parent
158b0717f1
commit
7ddf03ece0
|
@ -246,7 +246,7 @@ Now let's use the `stateless` and `task` component type.
|
|||
The `ComponentDefinition` can be instantiated in `Application` abstraction as below:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: website
|
||||
|
|
|
@ -159,7 +159,7 @@ to tell users that applying this trait will cause the pod to restart.
|
|||
Now the users could declare they want to add node affinity rules to the component instance as below:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
@ -214,7 +214,7 @@ The patch trait above assumes that the component it binds has other traits which
|
|||
We can deploy the following application:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
|
|
@ -249,7 +249,7 @@ ComponentDefinition task created in namespace vela-system.
|
|||
然后把它们编写到应用部署计划中,如下所示:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: website
|
||||
|
|
|
@ -156,7 +156,7 @@ spec:
|
|||
现在用户只需要,声明他们希望增加一个节点亲和性的规则到组件实例当中:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
@ -206,7 +206,7 @@ spec:
|
|||
我们可以部署如下应用来查看:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
|
|
@ -249,7 +249,7 @@ ComponentDefinition task created in namespace vela-system.
|
|||
然后把它们编写到应用部署计划中,如下所示:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: website
|
||||
|
|
|
@ -156,7 +156,7 @@ spec:
|
|||
现在用户只需要,声明他们希望增加一个节点亲和性的规则到组件实例当中:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
@ -206,7 +206,7 @@ spec:
|
|||
我们可以部署如下应用来查看:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
|
|
@ -246,7 +246,7 @@ Now let's use the `stateless` and `task` component type.
|
|||
The `ComponentDefinition` can be instantiated in `Application` abstraction as below:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: website
|
||||
|
|
|
@ -159,7 +159,7 @@ to tell users that applying this trait will cause the pod to restart.
|
|||
Now the users could declare they want to add node affinity rules to the component instance as below:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
@ -214,7 +214,7 @@ The patch trait above assumes that the component it binds has other traits which
|
|||
We can deploy the following application:
|
||||
|
||||
```yaml
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: testapp
|
||||
|
|
Loading…
Reference in New Issue