mirror of https://github.com/istio/istio.io.git
				
				
				
			zh-translatio:istio.io/content/en/docs/reference/config/type (#11098)
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
		
							parent
							
								
									ef843e55e9
								
							
						
					
					
						commit
						650d522ecc
					
				|  | @ -0,0 +1,6 @@ | ||||||
|  | --- | ||||||
|  | title: 常见类型 | ||||||
|  | description: 描述 Istio API 中的常见类型。 | ||||||
|  | weight: 50 | ||||||
|  | test: n/a | ||||||
|  | --- | ||||||
|  | @ -0,0 +1,45 @@ | ||||||
|  | --- | ||||||
|  | WARNING: THIS IS AN AUTO-GENERATED FILE, DO NOT EDIT. PLEASE MODIFY THE ORIGINAL SOURCE IN THE 'https://github.com/istio/api' REPO | ||||||
|  | source_repo: https://github.com/istio/api | ||||||
|  | title: Workload Selector | ||||||
|  | description: Definition of a workload selector. | ||||||
|  | location: https://istio.io/docs/reference/config/type/workload-selector.html | ||||||
|  | layout: protoc-gen-docs | ||||||
|  | generator: protoc-gen-docs | ||||||
|  | number_of_entries: 1 | ||||||
|  | --- | ||||||
|  | <h2 id="WorkloadSelector">WorkloadSelector</h2> | ||||||
|  | <section> | ||||||
|  | <p>WorkloadSelector specifies the criteria used to determine if a policy can be applied | ||||||
|  | to a proxy. The matching criteria includes the metadata associated with a proxy, | ||||||
|  | workload instance info such as labels attached to the pod/VM, or any other info | ||||||
|  | that the proxy provides to Istio during the initial handshake. If multiple conditions are | ||||||
|  | specified, all conditions need to match in order for the workload instance to be | ||||||
|  | selected. Currently, only label based selection mechanism is supported.</p> | ||||||
|  | 
 | ||||||
|  | <table class="message-fields"> | ||||||
|  | <thead> | ||||||
|  | <tr> | ||||||
|  | <th>Field</th> | ||||||
|  | <th>Type</th> | ||||||
|  | <th>Description</th> | ||||||
|  | <th>Required</th> | ||||||
|  | </tr> | ||||||
|  | </thead> | ||||||
|  | <tbody> | ||||||
|  | <tr id="WorkloadSelector-match_labels"> | ||||||
|  | <td><code>matchLabels</code></td> | ||||||
|  | <td><code>map<string, string></code></td> | ||||||
|  | <td> | ||||||
|  | <p>One or more labels that indicate a specific set of pods/VMs | ||||||
|  | on which a policy should be applied. The scope of label search is restricted to | ||||||
|  | the configuration namespace in which the resource is present.</p> | ||||||
|  | 
 | ||||||
|  | </td> | ||||||
|  | <td> | ||||||
|  | Yes | ||||||
|  | </td> | ||||||
|  | </tr> | ||||||
|  | </tbody> | ||||||
|  | </table> | ||||||
|  | </section> | ||||||
		Loading…
	
		Reference in New Issue