Name | Type | Description |
spec.hosts | string | Host name in the URL of a service. Multiple host names are allowed. |
spec.ports | Port[] | Port number of the service. Multiple port numbers are allowed. |
spec.resolution | string | Static: A static endpoint IP address is used as a service instance. DNS: The endpoint IP address of the service is resolved through DNS, which is mostly used for external services. A declared endpoint needs to use the DNS domain name, and the service is resolved to the host domain name if no endpoint is available. NONE: This option is selected when the service does not require IP resolution. |
spec.location | string | Specify whether the service is in the mesh. Some Istio features cannot be used by services outside the mesh. For example, services outside the mesh do not support mTLS. MESH_EXTERNAL represents a service outside the mesh, and MESH_INTERNAL represents a service in the mesh. |
spec.endpoints | String | Endpoints associated with the service. Multiple endpoints can be entered, but only one endpoint is used at a time. |
Name | Type | Description |
spec.metadata.label | string | Label associated with a WorkloadEntry. |
spec.template | string | Basic information about generation of the WorkloadEntry. |
sepc.probe | string | Parameter settings about health check on the WorkloadEntry. |
Name | Type | Description |
spec.address | string | Address of the current endpoint. It is similar to a pod IP address. |
spec.labels | string | Labels of the current endpoint. They are used to associate with the ServiceEntry. |
sepc.serviceAccount | string | Permission information about a sidecar. This field must be specified when you need to add a sidecar for the endpoint. |
apiVersion: networking.istio.io/v1alpha3kind: ServiceEntrymetadata:name: external-svc-httpsspec:hosts:- api.dropboxapi.com- www.googleapis.com- api.facebook.comlocation: MESH_EXTERNALports:- number: 443name: httpsprotocol: TLSresolution: DNS
apiVersion: networking.istio.io/v1alpha3kind: WorkloadGroupmetadata:name: reviewsnamespace: bookinfospec:metadata:labels:app.kubernetes.io/name: reviewsapp.kubernetes.io/version: "1.3.4"template:ports:grpc: 3550http: 8080serviceAccount: defaultprobe:initialDelaySeconds: 5timeoutSeconds: 3periodSeconds: 4successThreshold: 3failureThreshold: 3httpGet:path: /foo/barhost: 127.0.0.1port: 3100scheme: HTTPShttpHeaders:- name: Lit-Headervalue: Im-The-Best
apiVersion: networking.istio.io/v1alpha3kind: WorkloadEntrymetadata:name: details-svcspec:serviceAccount: details-legacyaddress: 2.2.2.2labels:app: details-legacyinstance-id: vm1
Was this page helpful?