public static final class CreateK8sServiceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateK8sServiceRequest.Builder |
appId(String appId)
The application ID.
|
CreateK8sServiceRequest |
build() |
CreateK8sServiceRequest.Builder |
externalTrafficPolicy(String externalTrafficPolicy)
The policy used for external traffic management.
|
CreateK8sServiceRequest.Builder |
name(String name)
The name of the Kubernetes Service.
|
CreateK8sServiceRequest.Builder |
servicePorts(String servicePorts)
The port mapping of the Kubernetes Service.
|
CreateK8sServiceRequest.Builder |
type(String type)
The type of the Kubernetes Service.
|
public CreateK8sServiceRequest.Builder appId(String appId)
public CreateK8sServiceRequest.Builder externalTrafficPolicy(String externalTrafficPolicy)
* Local: The network traffic can be routed to pods on the node where the Service is deployed. * Cluster: The network traffic can be routed to pods on other nodes in the cluster. Default value: Local.
public CreateK8sServiceRequest.Builder name(String name)
public CreateK8sServiceRequest.Builder servicePorts(String servicePorts)
* **protocol**: the protocol used by the Service. Valid values: TCP and UDP. This parameter is mandatory. * **port**: the frontend service port. Valid values: 1 to 65535. This parameter is mandatory. * **targetPort**: the backend container port. Valid values: 1 to 65535. This parameter is mandatory. Example: `[{"protocol": "TCP", "port": 80, "targetPort": 8080},{"protocol": "TCP", "port": 81, "targetPort": 8081}]`
public CreateK8sServiceRequest.Builder type(String type)
public CreateK8sServiceRequest build()
Copyright © 2023. All rights reserved.