1 server 的port , targetport, nodeport的区别

targetport为容器的暴露端口,为最后端的端口

port可以理解为pod的端口,pod是容器的外层,该端口可以在内网,即k8s内部访问。

nodeport是节点端口,当容器服务需要暴露到外网时,使用nodeport方式,该nodeport即为外网的访问端口。 

 

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2021-07-10
  • 2021-07-03
  • 2021-06-07
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2022-01-18
  • 2021-05-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案