检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
nameservers:DNS的IP地址列表。当应用的dnsPolicy设置为“None”时,列表必须至少包含一个IP地址,否则此属性是可选的。列出的DNS的IP列表将合并到基于dnsPolicy生成的域名解析文件的nameserver字段中,并删除重复的地址。 searches:域名查询时的DNS搜
如果用户负载需要使用k8s内部域名解析,则需要安装coredns插件。此时pod的dnsPolicy需要设置为ClusterFirst。 在插件市场界面可以单击,将coredns插件安装在指定的namesapce下。 图1 创建插件 如果用户负载不需要k8s内部域名解析服务,但是需要使用域名解析服务,
对外端口:开放在负载均衡服务地址的端口,可任意指定。 路由配置:可单击“添加映射”增加新的路由配置。 域名:可选填。实际访问的域名地址,该域名需用户购买并备案,并确保所填域名能解析到所选负载均衡实例的服务地址。一旦配置了域名规则,则必须使用域名访问。 路由匹配规则:当前仅支持前缀路由匹配。 前缀路由匹配:例如映射
容器实例以外的资源,如ECS等)且与负载在同一个VPC内互相访问,另外在同一个VPC不同命名空间的负载也可以选择此种方式。通过内网域名或ELB的“IP:Port”为内网提供服务,支持HTTP/HTTPS和TCP/UDP协议。如果是内网且与负载不在同一个VPC内,也可以选择创建VP
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
related IP addresses. 表9 io.k8s.api.core.v1.EndpointAddress 参数 参数类型 描述 hostname String The Hostname of this endpoint ip String The IP of this
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表23 io.k8s.api.core.v1.LocalObjectReference
查询TFJob 功能介绍 查询TFJob的详细信息。 URI GET /apis/kubeflow.org/v1/namespaces/{namespace}/tfjobs/{name} 表1 Path参数 参数 是否必选 描述 name Yes name of the TFJob
参数类型 描述 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
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. 表24 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
查询Event 功能介绍 查询Event详细信息。 调用方法 请参见如何调用API。 URI GET /api/v1/namespaces/{namespace}/events/{name} 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of
查询Namespace 功能介绍 查询Namespace的详细信息。 调用方法 请参见如何调用API。 URI GET /api/v1/namespaces/{name} 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of the Namespace
ClusterIP 10.247.148.137 <none> 8080/TCP 1h 您可以看到Service有个Cluster IP,这个IP是固定不变的,除非Service被删除,所以您也可以使用ClusterIP在内部访问Service。
Local. ipFamily String ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6) when the IPv6DualStack
查询Pod日志 功能介绍 查询Pod的日志。 调用方法 请参见如何调用API。 URI GET /api/v1/namespaces/{namespace}/pods/{name}/log 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of
参数类型 描述 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
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