Tag: data adb supports using the log Web to restrict class load
1: The most used is Nodeport, the following Nginx service, the type is set to Nodeport, while Nodeport is set to 30010 (k8s in order not to conflict with the host port, the default limit of 30000 ports below)
This allows access to Nginx via any node ip+30010
apiVersion:v1kind:Servicemetadata: name:my-nginx Labels: run:my-Nginxspec: Ports: -port:80 protocol:tcp 30010 type:nodeport selector: run:my-nginx
2:loadbalancer mode, only cloud provider support is available. The same type can be set
3:hostport, access to the host ip+8081 port, but only one pod per unit, otherwise the port will conflict, there is no service load June very
apiVersion:v1kind:Podmetadata: name:webapp Labels: app:webappspec : Containers:- name:webapp image:kubeguide/tomcat-app:v2 ports: -containerport:8080 8081
Several ways to kubernetes external access