首页 > 其他 > 详细

应用(服务)部署细节、访问方式

时间:2018-09-11 15:19:03      阅读:143      评论:0      收藏:0      [点我收藏+]
服务访问的方式
clusterIP(Service#spec.type: clusterIP默认值)
NodePort(Service#spec.type: NodePort)
LoadBalancer(Service#spec.type: LoadBalancer)
Ingress

暴露service:
    Service#spec.externalIPs
      externalIPs:
      - 192.168.0.75
暴露pod:
    Service#spec.containers.ports
      hostPort: 80

指定pod节点
    Pod.spec.nodeSelector
        nodeSelector:
          #node label(key: value)
          kubernetes.io/hostname: kube01
资料:
几种方式的使用场景和方法
https://blog.csdn.net/wjs7740/article/details/77088960
https://themes.gohugo.io/theme/hugo-theme-cleanwhite/2017/11/28/access-application-from-outside/
几种方式的比较
https://medium.com/google-cloud/kubernetes-nodeport-vs-loadbalancer-vs-ingress-when-should-i-use-what-922f010849e0

 

应用(服务)部署细节、访问方式

原文:https://www.cnblogs.com/wenlin-gk/p/9627732.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!