Pr for doc (#596)
* update multi-cluster.md and advanced.md Signed-off-by: Xueliang Yang <yangxueliang@cmbchina.com> * update docs/case-studies/multi-cluster.md and docs/platform-engineers/cue/advanced.md Signed-off-by: Xueliang Yang <yangxueliang@cmbchina.com>
This commit is contained in:
		
							parent
							
								
									5dc953f980
								
							
						
					
					
						commit
						da9bb3df01
					
				| 
						 | 
				
			
			@ -150,7 +150,7 @@ nginx-basic-dfb6dcf8d-km5vk nginx-basic 2022-04-08T06:38:10.540430392Z /docker-e
 | 
			
		|||
nginx-basic-dfb6dcf8d-km5vk nginx-basic 2022-04-08T06:38:10.540742240Z /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- `vela port-forward` forward ports of pods or services in managed clusters to your local endpoint.
 | 
			
		||||
- `vela exec` helps you execute commands in pods in managed clusters.
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
$ vela exec basic-topology -n examples -it -- ls 
 | 
			
		||||
| 
						 | 
				
			
			@ -160,7 +160,7 @@ boot  docker-entrypoint.sh  lib    mnt    root  srv   usr
 | 
			
		|||
dev   etc                   lib64  opt    run   sys   var
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- `vela exec` helps you execute commands in pods in managed clusters.
 | 
			
		||||
- `vela port-forward` forward ports of pods or services in managed clusters to your local endpoint.
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
$ vela port-forward basic-topology -n examples 8080:80
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
title: CUE Advanced
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
This section will introduce how to use CUE to deliver KubeVela modules. You can can dynamically expand the platform as user needs change, adapt to growing number of users and scenarios, and meet the iterative demands of the company's long-term business development.
 | 
			
		||||
This section will introduce how to use CUE to deliver KubeVela modules. You can dynamically expand the platform as user needs change, adapt to growing number of users and scenarios, and meet the iterative demands of the company's long-term business development.
 | 
			
		||||
 | 
			
		||||
## Convert Kubernetes API Objects Into Custom Components
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -339,7 +339,7 @@ In our Application example above, the name field in the properties and the name
 | 
			
		|||
			apiVersion: "apps/v1"
 | 
			
		||||
			kind:       "StatefulSet"
 | 
			
		||||
			metadata: name: context.name
 | 
			
		||||
				... // 省略其他没有修改的字段
 | 
			
		||||
				... // Omit other unmodified field
 | 
			
		||||
		}
 | 
			
		||||
	    parameter: {
 | 
			
		||||
			image: string
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -150,7 +150,7 @@ nginx-basic-dfb6dcf8d-km5vk nginx-basic 2022-04-08T06:38:10.540430392Z /docker-e
 | 
			
		|||
nginx-basic-dfb6dcf8d-km5vk nginx-basic 2022-04-08T06:38:10.540742240Z /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- `vela port-forward` forward ports of pods or services in managed clusters to your local endpoint.
 | 
			
		||||
- `vela exec` helps you execute commands in pods in managed clusters.
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
$ vela exec basic-topology -n examples -it -- ls 
 | 
			
		||||
| 
						 | 
				
			
			@ -160,7 +160,7 @@ boot  docker-entrypoint.sh  lib    mnt    root  srv   usr
 | 
			
		|||
dev   etc                   lib64  opt    run   sys   var
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- `vela exec` helps you execute commands in pods in managed clusters.
 | 
			
		||||
- `vela port-forward` forward ports of pods or services in managed clusters to your local endpoint.
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
$ vela port-forward basic-topology -n examples 8080:80
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
title: CUE Advanced
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
This section will introduce how to use CUE to deliver KubeVela modules. You can can dynamically expand the platform as user needs change, adapt to growing number of users and scenarios, and meet the iterative demands of the company's long-term business development.
 | 
			
		||||
This section will introduce how to use CUE to deliver KubeVela modules. You can dynamically expand the platform as user needs change, adapt to growing number of users and scenarios, and meet the iterative demands of the company's long-term business development.
 | 
			
		||||
 | 
			
		||||
## Convert Kubernetes API Objects Into Custom Components
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -339,7 +339,7 @@ In our Application example above, the name field in the properties and the name
 | 
			
		|||
			apiVersion: "apps/v1"
 | 
			
		||||
			kind:       "StatefulSet"
 | 
			
		||||
			metadata: name: context.name
 | 
			
		||||
				... // 省略其他没有修改的字段
 | 
			
		||||
				... // Omit other unmodified fields
 | 
			
		||||
		}
 | 
			
		||||
	    parameter: {
 | 
			
		||||
			image: string
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue