检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表22 io.k8s.api.core.v1.LocalObjectReference
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表22 io.k8s.api.core.v1.LocalObjectReference
Local. ipFamily String ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6) when the IPv6DualStack
an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or
not yet running. 表107 io.k8s.api.core.v1.PodIP 参数 参数类型 描述 ip String ip is an IP address (IPv4 or IPv6) assigned to the pod 请求示例 无 响应示例 状态码: 200
查询Pod日志 功能介绍 查询Pod的日志。 调用方法 请参见如何调用API。 URI GET /api/v1/namespaces/{namespace}/pods/{name}/log 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of
Local. ipFamily 否 String ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6) when the IPv6DualStack
DNS based (typically AWS load-balancers) ip String IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表22 io.k8s.api.core.v1.LocalObjectReference
an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or
查询Event 功能介绍 查询Event详细信息。 调用方法 请参见如何调用API。 URI GET /api/v1/namespaces/{namespace}/events/{name} 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表22 io.k8s.api.core.v1.LocalObjectReference
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表24 io.k8s.api.core.v1.LocalObjectReference
如何从容器访问公网? 您可以使用公有云平台提供的NAT网关服务。该服务能够为虚拟私有云内的容器提供网络地址转换(Network Address Translation)服务,使虚拟私有云内的容器可以共享使用弹性公网IP访问Internet。通过NAT网关的SNAT功能,可以直接访问Internet,
Local. ipFamily String ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6) when the IPv6DualStack
an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or
an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表22 io.k8s.api.core.v1.LocalObjectReference
an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表24 io.k8s.api.core.v1.LocalObjectReference