ports property

List<GoogleCloudMlV1ContainerPort>? ports
getter/setter pair

List of ports to expose from the container.

AI Platform Prediction sends any prediction requests that it receives to the first port on this list. AI Platform Prediction also sends [liveness and health checks](/ai-platform/prediction/docs/custom-container-requirements#health) to this port. If you do not specify this field, it defaults to following value: json [ { "containerPort": 8080 } ] AI Platform Prediction does not use ports other than the first one listed. This field corresponds to the ports field of the Kubernetes Containers v1 core API.

Immutable.

Implementation

core.List<GoogleCloudMlV1ContainerPort>? ports;