OpenShift Container Platform 4.8 CLI 工具Container Platform 4.8 CLI 工具 工具 38 创建 TLS secret 用法示例 用法示例 2.5.1.58. oc create service clusterip 创建 ClusterIP 服务。 用法示例 用法示例 2.5.1.59. oc create service externalname 创建 ExternalName 服务。 用法示例 用法示例 Create a new ClusterIP service named my-cs oc create service clusterip my-cs --tcp=5678:8080 # Create a new ClusterIP service named my-cs (in headless mode) oc create service clusterip my-cs --clusterip="None" services # Observe changes to services, including the clusterIP and invoke a script for each oc observe services --template '{ .spec.clusterIP }' -- register_dns.sh # Observe changes to services0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具用法示例 2.5.1.57. oc create secret tls 创建 TLS secret 用法示例 用法示例 2.5.1.58. oc create service clusterip 创建 ClusterIP 服务 用法示例 用法示例 2.5.1.59. oc create service externalname 创建 ExternalName 服务 用法示例 用法示例 2 Create a new ClusterIP service named my-cs oc create service clusterip my-cs --tcp=5678:8080 # Create a new ClusterIP service named my-cs (in headless mode) oc create service clusterip my-cs --clusterip="None" services # Observe changes to services, including the clusterIP and invoke a script for each oc observe services --template '{ .spec.clusterIP }' -- register_dns.sh # Observe changes to services0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具用法示例 2.7.1.57. oc create secret tls 创建 TLS secret 用法示例 用法示例 2.7.1.58. oc create service clusterip 创建 ClusterIP 服务 # route name default to the service name and the destination CA certificate # default Create a new ClusterIP service named my-cs oc create service clusterip my-cs --tcp=5678:8080 # Create a new ClusterIP service named my-cs (in headless mode) oc create service clusterip my-cs --clusterip="None" Observe changes to services oc observe services # Observe changes to services, including the clusterIP and invoke a script for each 第 第 2 章 章 OPENSHIFT CLI (OC) 57 2.7.1.92. oc patch 更新资源字段 用法示例0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.6 网络SCTP 是基于信息的可靠协议,可在 IP 网络之上运行。 启用后,您可以使用 SCTP 作为带有 pod、服务和网络策略的协议。Service 对象必须通过将 type 参数 设置为 ClusterIP 或 NodePort 值来定义。 8.1.1. 使用 SCTP 协议的示例配置 您可以通过将 pod 或服务对象中的 protocol 参数设置为 SCTP 来将 pod 或服务配置为使用 ports: - name: sctpserver protocol: SCTP port: 30100 targetPort: 30100 type: ClusterIP OpenShift Container Platform 4.6 网 网络 络 52 8.2. 启用流控制传输协议 (SCTP) 作为集群管理员,您可以在集群中的 worker 节点上加载并启用列入黑名单的替换为 sctpservice 服务的集群 IP 地址。 $ oc get services sctpservice -o go-template='{{.spec.clusterIP}}{{"\n"}}' $ oc rsh sctpclient # nc 30102 --sctp OpenShift Container Platform 4 0 码力 | 256 页 | 2.78 MB | 1 年前3
OpenShift Container Platform 4.9 网络SCTP 是基于信息的可靠协议,可在 IP 网络之上运行。 启用后,您可以使用 SCTP 作为带有 pod、服务和网络策略的协议。Service 对象必须通过将 type 参数 设置为 ClusterIP 或 NodePort 值来定义。 10.1.1. 使用 SCTP 协议的示例配置 您可以通过将 pod 或服务对象中的 protocol 参数设置为 SCTP 来将 pod 或服务配置为使用 ports: - name: sctpserver protocol: SCTP port: 30100 targetPort: 30100 type: ClusterIP 第 第 10 章 章 在裸机集群中使用流控制 在裸机集群中使用流控制传输协议 传输协议 (SCTP) 83 10.2. 启用流控制传输协议 (SCTP) 作为集群管理员,您可以在集群中的替换为 sctpservice 服务的集群 IP 地址。 $ oc get services sctpservice -o go-template='{{.spec.clusterIP}}{{"\n"}}' $ oc rsh sctpclient # nc 30102 --sctp 第 第 10 章 章 在裸机集群中使用流控制 在裸机集群中使用流控制传输协议 0 码力 | 388 页 | 4.04 MB | 1 年前3
OpenShift Container Platform 4.13 网络SCTP 是基于信息的可靠协议,可在 IP 网络之上运行。 启用后,您可以使用 SCTP 作为带有 pod、服务和网络策略的协议。Service 对象必须通过将 type 参数 设置为 ClusterIP 或 NodePort 值来定义。 18.1.1. 使用 SCTP 协议的示例配置 您可以通过将 pod 或服务对象中的 protocol 参数设置为 SCTP 来将 pod 或服务配置为使用 ports: - name: sctpserver protocol: SCTP port: 30100 targetPort: 30100 type: ClusterIP OpenShift Container Platform 4.13 网 网络 络 134 18.2. 启用流控制传输协议 (SCTP) 作为集群管理员,您可以在集群中的 worker替换为 sctpservice 服务的集群 IP 地址。 $ oc get services sctpservice -o go-template='{{.spec.clusterIP}}{{"\n"}}' $ oc rsh sctpclient # nc 30102 --sctp OpenShift Container Platform 4 0 码力 | 697 页 | 7.55 MB | 1 年前3
OpenShift Container Platform 4.13 虚拟化Details 选项卡中公开,也可以在 Service 对象中指 定 spec.type : ClusterIP 在内部 IP 地址上公开服务,并将 DNS 名称公开给集群中的其他应用程序。单个服务可映射到多个虚 拟机。当客户端尝试连接到服务时,客户端请求会在可用后端之间平衡负载。ClusterIP 是默认服务类 类 型 型。 NodePort 在集群中每个所选节点的同一端口上公开该服务。NodePort 第 第 10 章 章 虚 虚拟 拟机 机 183 1 [IPv4, IPv6] [IPv6, IPv4] 10.18.2.2. 将虚 将虚拟机作 机作为服 服务公开 公开 创建 ClusterIP、NodePort 或 LoadBalancer 服务,以便从集群内部或外部连接到正在运行的虚拟机 (VM)。 流程 流程 1. 编辑 VirtualMachine 清单,为创建服务添加标签: labels 小节中添加的标签的引 用。 服务的类型。可能的值有 ClusterIP、NodePort 和 LoadBalancer。 4. 保存 Service 清单文件。 5. 运行以下命令来创建服务: 6. 启动虚拟机。如果虚拟机已在运行,重启它。 验证 验证 1. 查询 Service 对象以验证它是否可用: ClusterIP 服 服务的 的输出示例 出示例 NodePort 服 服务的0 码力 | 393 页 | 4.53 MB | 1 年前3
OpenShift Container Platform 4.10 虚拟化服务是一个抽象的方式,用于公开在一组 pod 上运行的应用程序作为网络服务。服务允 许您的应用程序接收流量。通过在 Service 对象中指定 spec.type,可以使用不同的方式公开服务: ClusterIP 在集群中的内部 IP 地址上公开服务。ClusterIP 是默认服务类 类型 型。 NodePort 在集群中每个所选节点的同一端口上公开该服务。NodePort 使服务可从集群外部访问。 LoadBalancer 系列,或者定义双栈 IP 系列的顺序: [IPv4] [IPv6] [IPv4, IPv6] [IPv6, IPv4] 8.18.2.2. 将虚 将虚拟机作 机作为服 服务公开 公开 创建 ClusterIP、NodePort 或 LoadBalancer 服务,以便从集群内部或外部连接到正在运行的虚拟机 (VM)。 流程 流程 1. 编辑 VirtualMachine 清单,为创建服务添加标签: targetPort,它将采用与 port 相同的值。 对您在 VirtualMachine 清单的 spec.template.metadata.labels 小节中添加的标签的引 用。 服务的类型。可能的值有 ClusterIP、NodePort 和 LoadBalancer。 4. 保存 Service 清单文件。 5. 运行以下命令来创建服务: 6. 启动虚拟机。如果虚拟机已在运行,重启它。 验证 验证0 码力 | 307 页 | 3.45 MB | 1 年前3
OpenShift Container Platform 4.7 日志记录openshift-logging 项目: 2. 从日志存储提取 CA 证书并写入 admin-ca 文件: $ oc get service elasticsearch -o jsonpath={.spec.clusterIP} -n openshift-logging 172.30.183.229 $ oc get service elasticsearch -n openshift-logging NAME NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE elasticsearch ClusterIP 172.30.183.2299200/TCP 22h $ oc exec elasticsearch-cdm-oplnhinv-1-5746475887-fj2f8 0 码力 | 183 页 | 1.98 MB | 1 年前3
OpenShift Container Platform 4.8 日志记录openshift-logging 项目: 2. 从日志存储提取 CA 证书并写入 admin-ca 文件: $ oc get service elasticsearch -o jsonpath={.spec.clusterIP} -n openshift-logging 172.30.183.229 $ oc get service elasticsearch -n openshift-logging NAME NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE elasticsearch ClusterIP 172.30.183.2299200/TCP 22h $ oc exec elasticsearch-cdm-oplnhinv-1-5746475887-fj2f8 0 码力 | 223 页 | 2.28 MB | 1 年前3
共 27 条
- 1
- 2
- 3













