首页 > 其他分享 >Kubernetes 学习整理

Kubernetes 学习整理

时间:2024-01-21 19:55:38浏览次数:18  
标签:MetalLB Kubernetes IP 学习 speaker 整理 pod pods nodes

MetalLB: route TCP or UDP traffic (layer 4).
Ingress: is based on the HTTP or HTTPS (layer 7), using NGINX or HAProxy.

Once MetalLB is installed, the metallb-operator-controller-manager deployment starts a pod named operator.
As soon as the MetalLB operator starts, an interface of metalLB starts a controller deployment and a speaker daemon.
The speaker daemon ensure all/some nodes run a copy of pod.
The controller deployment:
1. Manages the number of the pods;
2. Manage how many nodes those pods should run;
3. Allocate an IP address to the load balancer from an address.

1. Service: add to the cluster;
2. MetalLB: assign an extrernal IP to the service;
3. MetalLB opertator: 
    3.1  start a speaker daemon, 
    3.2 start a controller deployment;
4. The speaker daemon started from 3.1, set runs a pod on each node;
5. The speaker pod on one of the nodes, housing the service pod, use ARP to announce the external IP;
6. Client traffic rout to the external IP to the node;
7. Service proxy: kube-proxy send traffic to all the pods of  the service.

Deploy: update, rollback----------------------------------
| |
| RS (replica set): Replica count, self-healing, old versions----|
| | |
| | Pods: labels, annotations, co-scheduling -------------|
| | | |

Apps:

Pods run on nodes, thinking pods as apps and nodes as infrastructure.
Pod is the unit of scaling in the k8s. [scale up: add pods; scale down: remove pods]
We can't rely on the pod IPs, the YAML manifest file define the stable DNS name and the stable IP;

Pod is a wrapper that share the execution environment, resources, network namespace;
In the same pod, Pod is a wrapper which share the execution environment, resources, network namespace;
In the same pod, each container has its own unique port, share the same IP owned by the pod., share the same IP owned by the pod.

标签:MetalLB,Kubernetes,IP,学习,speaker,整理,pod,pods,nodes
From: https://www.cnblogs.com/vivivi/p/17978243

相关文章

  • Shiro学习笔记
    Shiroshiro外部来看:内部来看:认证登录基本流程:收集用户身份/凭证,如用户名密码调用Subject.login(),进行登录,如果错误返回异常创建自定义的Realm类,继承org.apache.shiro.realm.AuthorizingRealm类,实现doGetAuthenticationInfo()方法授权流程:首先调用Subject.isPermit......
  • 学习笔记-24.1.21
    因此,当您在null引用上访问字段mingcheng时,它们不会被解析。相反,您应该首先创建一个对象并将其放入数组中。因此修改代码如下Pd[]pdd=newPd[20];for(inti=0;i<20;i++){Pdpd=newPd();pdd[i]=pd;} ......
  • RabbitMQ学习八 消费者可靠性
    一、消费者确认机制消费者的可靠性是靠消费者确认机制来保证。RabbitMQ提供了消费者确认机制(consumerAcknowledgement)。当消费者处理消息结束后,应该向RabbitMQ发送一个回执,告知RabbitMQ自己处理状态。回执有三种可选值:ack:成功处理消息,RabbitMQ从队列中删除该消息nack:......
  • Rocketmq学习3——消息发送原理源码浅析
    一丶概述RocketMQ消息发送的原理流程可以分为以下几个步骤:1.创建生产者在发送消息前,客户端首先需要创建一个消息生产者(Producer)实例,并设置必要的配置参数,如NameServer地址、生产组名称、消息发送失败的重试次数等。2.启动生产者创建生产者后,需要调用启动方法来初始化生产......
  • Evaluation Of postfix Expression using stack【1月21日学习笔记】
    点击查看代码//EvaluationOfpostfixExpressionusingstack#include<iostream>#include<stack>//stackfromstandardtemplatelibrary(STL)#include<string>usingnamespacestd;intEvaluatePostfix(stringexp);boolIsOperator(charc);intPe......
  • 算法学习Day36重叠区间
    Day36重叠区间ByHQWQF2024/01/21笔记435.无重叠区间给定一个区间的集合,找到需要移除区间的最小数量,使剩余区间互不重叠。注意:可以认为区间的终点总是大于它的起点。区间[1,2]和[2,3]的边界相互“接触”,但没有相互重叠。示例1:输入:[[1,2],[2,3],[3,4],[1......
  • Docker 学习笔记 - 4
    容器数据卷1.容器数据卷(1)是什么容器删除后数据自然也就没有了,所以用卷来保存数据。容器数据卷功能是持久化和数据共享。卷就是目录或文件,存在于一个或多个容器中,由docker挂载到容器,但不属于联合文件系统,因此能够绕过UnionFileSyste提供一些用于持续存储或共享数据的特性。......
  • 【Dynamics365-Finance&Operations学习】Chain of Command Feature使用方法与使用场景
    前提微软在PlatformUpdate9之后引入了ChainofCommand(CoC),通过支持像Public和Protected类型的拓展,来为技术顾问和编程人员减少过度分层(overlayering)。在PU15(Dynamic365的某一版本)中,在Form、Table和Class的CoC已经被实现,但在表单数据源(FormDataSource)和表单数据字段(Formdat......
  • 寒假学习(11)
    今天我计划学习一些基本函数的功能及它们的使用方法,由于网上大多没有汇总,碰巧又赶上最近学的数据处理,所以我根据需要自己整理了几个可能会用到的关于数据的函数。Python内置函数:len():用于获取对象的长度或元素个数。string="hello"length=len(string)print(length)......
  • C#学习笔记-类与名称空间
    1.类和对象  类是一个数据结构,将字段和方法组合在一个单元中。类为动态创建实例提供了定义,类的实例化称为对象。C#中的类同样支持继承和多态。C#是完全面向对象的语言,程序本身就是一个类。  如下所示,程序的入口点Main()方法包含在Program类中(与C++不同),类的实例使用new运......