当前位置:网站首页>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
边栏推荐
- (C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
- 堆(優先級隊列)
- 全链路压测
- Mysql database foundation
- The most understandable f-string tutorial in history, collecting this one is enough
- 初始JDBC 编程
- Find the factorial of a positive integer within 16, that is, the class of n (0= < n < =16). Enter 1111 to exit.
- 自然语言处理系列(一)——RNN基础
- Natural language processing series (III) -- LSTM
- Full link voltage measurement
猜你喜欢
Dynamic debugging of multi file program x32dbg
Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
CONDA common command summary
CDA数据分析——AARRR增长模型的介绍、使用
堆(優先級隊列)
Map和Set
MySQL与PostgreSQL抓取慢sql的方法
SparkContext: Error initializing SparkContext解决方法
Brush questions --- binary tree --2
GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
随机推荐
Fastdateformat why thread safe
CDA data analysis -- Introduction and use of aarrr growth model
Seriation in R: How to Optimally Order Objects in a Data Matrice
JZ63 股票的最大利润
PyTorch nn.RNN 参数全解析
自然语言处理系列(二)——使用RNN搭建字符级语言模型
Find the factorial of a positive integer within 16, that is, the class of n (0= < n < =16). Enter 1111 to exit.
Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
conda常用命令汇总
【C语言】十进制数转换成二进制数
Orb-slam2 data sharing and transmission between different threads
SSH automatically disconnects (pretends to be dead) after a period of no operation
Small guide for rapid formation of manipulator (VII): description method of position and posture of manipulator
小程序链接生成
drools执行完某个规则后终止别的规则执行
Deep understanding of NN in pytorch Embedding
YYGH-BUG-05
Leetcode922 按奇偶排序数组 II
ORB-SLAM2不同线程间的数据共享与传递
Deep understanding of P-R curve, ROC and AUC