当前位置:网站首页>The differences and relationships among port, targetport, nodeport and containerport in kubenetes
The differences and relationships among port, targetport, nodeport and containerport in kubenetes
2022-07-02 12:12:00 【Ostrich5yw】
kubenetes in port、targetPort、nodePort、containerPort The difference and connection
First, give a picture of kubenetes chart :

containerPort
containerPort Is in pod Defined in the controller 、pod Containers in need of exposed ports .
Pod Exposed port in container
targetPort
targetPort yes pod On the port , from port/nodePort The data coming down , after kube-proxy Into the back end pod Of targetPort On , And finally into the container .
Pod Exposed ports
port
port Is exposed to cluster ( Cluster network ) On the port , Provides internal cluster client access service Entrance , namely clusterIP:port.mysql The container is exposed 3306 port ( Reference resources DockerFile), Other containers in the cluster pass through 33306 Port access mysql service , However, external traffic cannot access mysql service , because mysql The service is not configured NodePort.
service Ports exposed in the cluster
nodePort
nodePort Provides access to external clients of the cluster service One way , namely nodeIP:nodePort Provides external network access k8s In the cluster service Entrance .
The port of the cluster exposed in the external network
Reference resources
KUBERNETES NODEPORT、TARGETPORT、PORT、CONTAINERPORT The illustration
K8s Discrimination of miscible points :nodePort、port、targetPort、containerPort
边栏推荐
- WSL 2 will not be installed yet? It's enough to read this article
- Leetcode122 买卖股票的最佳时机 II
- CDA data analysis -- common knowledge points induction of Excel data processing
- Read the Flink source code and join Alibaba cloud Flink group..
- CDH6之Sqoop添加数据库驱动
- MSI announced that its motherboard products will cancel all paper accessories
- 字符串回文hash 模板题 O(1)判字符串是否回文
- 上传文件时,服务器报错:IOFileUploadException: Processing of multipart/form-data request failed. 设备上没有空间
- Le tutoriel F - String le plus facile à comprendre de l'histoire.
- (C language) octal conversion decimal
猜你喜欢
随机推荐
小程序链接生成
5g era, learning audio and video development, a super hot audio and video advanced development and learning classic
MSI announced that its motherboard products will cancel all paper accessories
【C语言】十进制数转换成二进制数
WSL 2 will not be installed yet? It's enough to read this article
GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R
XSS labs master shooting range environment construction and 1-6 problem solving ideas
Sort---
CDH6之Sqoop添加数据库驱动
How does Premiere (PR) import the preset mogrt template?
甜心教主:王心凌
How to Create a Beautiful Plots in R with Summary Statistics Labels
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
Find the factorial of a positive integer within 16, that is, the class of n (0= < n < =16). Enter 1111 to exit.
Heap (priority queue)
Depth filter of SvO2 series
Pytorch builds LSTM to realize clothing classification (fashionmnist)
From scratch, develop a web office suite (3): mouse events
求16以内正整数的阶乘,也就是n的阶层(0=<n<=16)。输入1111退出。
Codeforces 771-div2 C (trouble, permutation is not very good)