标签:col 方式 sid tor selector service ide log blog
服务访问的方式
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
标签:col 方式 sid tor selector service ide log blog
原文地址:https://www.cnblogs.com/wenlin-gk/p/9627732.html