public List<ContainerPort> ports() {
        return this.ports == null ? List.of() : this.ports;
    }
@return Ports are not allowed for ephemeral containers.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainer.java