Scheduling constraints of K8s

Note that this article continues from the previous one: Advanced Pod of K8shttps://blog.51cto.com/14464303/2472123 Principle: kubernetes cooperates with each component through the watch mechanism, and the design of each component is decoupled Dispatching mode: nodeName is used to schedule the Pod to the specified Node name (skip scheduler di ...

Posted on Fri, 21 Feb 2020 10:22:29 -0500 by billynastie

Illustration of kubernetes resource QOS mechanism implementation principle

QOS is a resource protection mechanism in k8s, which is mainly a control technology for uncompressed resources such as memory. For example, in memory, it constructs OOM scores for different pods and containers, and with the help of the kernel's strategy, so that when the node's memory resources are insufficient, the kernel can kill which priori ...

Posted on Wed, 19 Feb 2020 10:21:13 -0500 by mandrews81

k8s Expired Certificate Solution

Introduction to the environment: #centos7.7 #kubernetes 1.16.0 #Step 1: View the certificate expiration date (one year validity period) openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -text |grep ' Not '             Not Before: May 24 03:31:50 2019 GMT             Not After : May 23 03:31:50 2020 GMT #Step 2: Download 1.16.0 source ...

Posted on Tue, 18 Feb 2020 12:05:10 -0500 by Dirtbagz89

#IT star is not a dream

Yesterday, we introduced the key components of resource plug-in mechanism in k8s. Today, we will continue to see how each component communicates and the key design behind event handling in k8s 1.PluginManager PluginManager is a top-level component, which contains the key components in the previous article, coordinates its internal data flow, a ...

Posted on Tue, 18 Feb 2020 05:25:01 -0500 by Rumour

Core implementation of kubernetes container state synchronization mechanism

After the Pod is dispatched to a Node in K8s, the subsequent state maintenance information is maintained by the kubelet on the corresponding machine. How to feed back the local running state in real time and notify the apiserver is the difficulty of the design. This section mainly analyzes the core data structure through the two processes of pe ...

Posted on Wed, 12 Feb 2020 23:03:45 -0500 by dicky96

Common commands for the kubectl command line tool of K8s

kubectl management Kubectl is a command-line tool for managing the k8s cluster and is passed to apiserver in the generated json format for creation, viewing, and management Note: We need to use the K8s multi-node deployment environment where we deployed it before. If you haven't already deployed it, you can refer to my previous article: https: ...

Posted on Wed, 12 Feb 2020 13:17:11 -0500 by udendra

Kubelet source code analysis -- startup

In the Kubernetes cluster, a Kubelet service will be started on each Node (also known as Minion). This process is used to process the tasks distributed to this Node by the Master Node and manage the Pod and the containers in the Pod. Each Kubelet process will register the Node information on the API Ser ...

Posted on Wed, 12 Feb 2020 05:39:36 -0500 by The_PHP_Newb

#IT Stars Are Not Dreams#Illustrations Core Implementation of kubernetes Container Detection Mechanism

After a container is pulled up by kubelet in k8s, the user can specify the way of sniffing to check the health of the container. TCP, Http and command are currently supported. Today, the implementation of the whole sniffing module is introduced to understand the implementation of its periodic detection, counter, delay and other design. 1. Expl ...

Posted on Tue, 11 Feb 2020 21:16:20 -0500 by centipede

kubernetes binary cluster deployment II: single master cluster deployment + multiple master cluster deployment

Key points: 1, Experimental environment 2, Single master cluster deployment 3, Multi master cluster deployment 1, Experimental environment: Based on the previous blog: https://blog.51cto.com/14475876/2470049 On the deployed environment 2, Single master cluster deployment Single master cluster architecture: The following is a list of self si ...

Posted on Mon, 10 Feb 2020 10:24:33 -0500 by Digimatt

Single node deployment of Kubernetes binary deployment

K8s single node binary deployment Steps for building K8s binary deployment: 1: Self signed ETCD certificate 2: ETCD deployment 3: Node install docker 4: Flannel deployment (write subnet to etcd first) ---------master---------- 5: Self signed APIServer certificate 6: Deploy the APIServer component (token, csv) 7: Deploy the controller manag ...

Posted on Mon, 10 Feb 2020 05:51:55 -0500 by dreamscape