Kubernetes external access to the cluster exposed port service

Source: Internet
Author: User

Multiple different types of resources in a Yaml file can be divided with "---"

Name:httpd2-svc

Namespace:kube-public #给资源分配网络 Resources will be used in Kube-public

To create a Nodeport type service:

Kubectl Get Service Httpd-svc

In

External-ip: For <nodes>, the service is accessed through the IP of each cluster node itself

Port (S): 8080:32312/tcp 8080 indicates clusterip monitored port 32312 indicates the ports that are listening on the node

Kubernetes external access to the cluster exposed port service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.