Microservice Resource Description
This document primarily provides a description of the resources for ServiceMesh type Microservices.
MicroService Resource Reference
YAML Example
Top-Level Parameters
spec Parameters
-
deployments
deployments is used to specify the Deployment running the service. The Deployment must be in the same namespace as the service.
-
services
services is used to describe the service associated one-to-one with the deployments.
Service must meet the following conditions:
-
Only one service is associated with the service's Deployment, and the service is only associated with the selected Deployment.
-
The service type is NodePort or ClusterIP.
-
The service supports HTTP, HTTP2, gRPC, and TCP protocols.
-
-
accessLogging
accessLogging is used to control whether to collect and output the access logs (access log) of web services accessing the current service in the logs.
| Parameter Name | Required | Description | |------------------|----------|--------------| | enabled | No | Whether to collect and output the access logs (access log) of web services accessing the current service. |
-
auth
auth is used to control whether the black and white list rules configured for the service take effect.
| Parameter Name | Required | Description | |-------------------|----------|--------------| | enabled | No | Whether the black and white list rules take effect, disabled by default. |