K8S安装部署开放服务内存:8GB,系统盘:40GB,docker 数据盘:80GB step1. 从模板上新建虚拟机 Step2. 配置虚拟机网络 打开虚拟机的控制台: 设置主机名: hostnamectl set-hostname k8s-master 设置网络: cd /etc/sysconfig/network-scripts vi ifcfg-ens160 TYPE=Ethernet ip_vs_sh modprobe -- nf_conntrack modprobe -- ip_tables modprobe -- ip_set modprobe -- xt_set modprobe -- ipt_set modprobe -- ipt_rpfilter modprobe -- ipt_REJECT modprobe -- ipip EOF # Specify the filesystem type of the volume. If not specified, csi-provisioner # will set default as `ext4`. csi.storage.k8s.io/fstype: xfs kubectl apply -f storageclass.yaml0 码力 | 54 页 | 1.23 MB | 1 年前3
绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能Performance measurement 03 04 Future work 05 06 Lessons from eBPF What is K8s Service • It exposes a set of pods via VIP using a load balancer • Two types • ClusterIP provides in-cluster access • Test topology Test result Service type Short connection cps Short connection P99 latency Long connection pps ClusterIP +40% -31% not available NodePort +64% -47% +22% Test result • Perf shows number0 码力 | 24 页 | 1.90 MB | 1 年前3
Apache OpenWhisk + Kubernetes:
A Perfect Match for Your Serverless Platformsearch Helm chart repositories. Apache OpenWhisk Source event Trigger Rule Action Result A serverless, open source cloud platform that executes functions in response to events at any workload API object used to manage stateful applications. Manages the deployment and scaling of a set of pods, and provides guarantees about the ordering and uniqueness of these Pods • A DaemonSet Catalog installation Service • A Kuberentes Servcie is an abstraction which defines a logical set of Pods and a policy by which to access them. • Service provides a way for applications to communicate0 码力 | 24 页 | 3.53 MB | 1 年前3
Автоматизация управления ClickHouse-кластерами в KubernetesReplica Service Replica Service Replica Service User Config Map Common Config Map Stateful Set Pod Persistent Volume Claim Persistent Volume Per-replica Config Map Altinity ClickHouse operator docs/examples/demo-01.yaml -n demo clickhouseinstallation.clickhouse.altinity.com/demo-01 created 3. RESULT $ kubectl get all -n demo NAME READY STATUS pod/chi-demo-01-demo-0-0-00 码力 | 44 页 | 2.24 MB | 1 年前3
深度解析CNCF社区⾸个基于Kubernetes的边缘计算平台KubeEdgepod update� Send added pod to edge� Kubectl create� Create result� Send pod update to cloud� Update pod� Kubectl get� Get result� 应⽤用场景:智能家居应⽤用⽣生命周期管理理� 后续规划� Release V1.0 Function List:(May0 码力 | 20 页 | 2.08 MB | 1 年前3
在大规模Kubernetes集群上实现高SLO的方法Reason analysis: Analyze the failure reasons. Try to find something abnormal in the cluster. Trace Result: We can get: It is failed to deliver the pod,and the fail reason is FailedMount. Pod Lifecycle0 码力 | 11 页 | 4.01 MB | 1 年前3
Advancing the Tactical Edge with K3s and SUSE RGStime the target may have moved or the environment altered. Outcomes have been transformed as a result. What’s Next For the team, the priority is to deploy SmartEdge in as many scenarios as pos- sible0 码力 | 8 页 | 888.26 KB | 1 年前3
Kubernetes开源书 - 周立10-Annotation 11-K8s架构及基本概念 12-Master与Node的通信 13-Node 14-Pod 15-Replica Set 16-Deployment 17-StatefulSet 18-Daemon Set 19-配置最佳实践 20-管理容器的计算资源 21-Kubernetes资源分配 22-将Pod分配到Node 23-容忍与污点 24-Secret pace-name-here> get pods 设置Namespace⾸选项 可在上下⽂中永久保存所有后续 kubectl 命令的Namespace。 $ kubectl config set-context $(kubectl config current-context) --namespace=# Validate it Label。 通过Label选择器 ,客户端/⽤户可识别⼀组对象。Label选择器是Kubernetes中的核⼼分组API。 API⽬前⽀持两种类型的选择器:equality-based 和 set-based 。Label选择器可由逗号分隔的多个需求组成。在多重需 求的情况下,必须满⾜所有需求,因此逗号作为AND逻辑运算符。 ⼀个empty Label选择器(即⼀个零需求的选择器)选择集合中的每个对象。 0 码力 | 135 页 | 21.02 MB | 1 年前3
第1930期:Kubernetes基础介绍17 www.h3c.com Confidential 秘密 17 17 K8s基本概念和术语介绍(RC) RC Replication Controller(副本管理器)和RS(Replica Set): RC定义了一个期望的场景,即声明某种Pod的副本数量在任意时刻都符合某个预期值。RC包含如下几部分: Pod期待的副本数(replicas) 用于筛选目标Pod的Label Selector 并大大减少了很多运维工作。 Replication Controller在k8s 1.2版本之后升级成了新的概念,Replica Set(下一代RC),Replicas Set支持基于集 合的标签选择器,而RC只支持基于等式的标签选择器。 Replicas Set的一些作用和特性: 1. 大多数情况下,我们通过定义一个RC实现Pod的创建过程及副本数量的自动控制 2. RC里面包含完整的Pod定义模板 18 www.h3c.com Confidential 秘密 18 18 K8s基本概念和术语介绍(Deployment) Deployment(部署): 部署是一个比RS(Replica Set)应用模式更广的API对象,可以是创建一个新的服务,更新一个新的服务,也可以是 滚动升级一个服务。滚动升级一个服务,实际是创建一个新的RS,然后逐渐将新RS中副本数增加到理想状态,将旧RS中 的副本0 码力 | 49 页 | 4.11 MB | 1 年前3
k8s操作手册 2.3244.0.0/16 规划Service网络: 10.7.0.0/16 # pod网络和service网络都要求为16位的地址块,且不能与环境中其他网络地址 段冲突 # hostnamectl set-hostname k8s-master1.cof-lee.com #设置主机名称,所有结 点分别设置 # cat >> /etc/hosts <set-�mezone Asia/Shanghai #设置时区 # systemctl restart chronyd # chronyc sources -v ⑦设置网络参数 ontainerd.sock unix:///run/crio/crio.sock]. As the default se�ngs are now deprecated, you should set the endpoint instead. #crictl默认会依次读取以上3个接口 ★设置crictl连接containerd的cri接口 # cat > 0 码力 | 126 页 | 4.33 MB | 1 年前3
共 20 条
- 1
- 2













