Source Code Analysis of Kubernetes HPA Controller
Author: xidianwangtao@gmail.com
Analysis of Source Directory Structure
The main code of Horizontal Pod Autoscaler (hereinafter referred to as HPA) is as follows, and the main documents involved are few.
cmd/kube-controller-manager/app/autoscaling.go // HPA Controller Startup Code
/pkg/controller/podautoscaler
.
├── BUILD
├── OWNERS
├── doc ...
Posted by slamMan on Sat, 06 Jul 2019 18:06:36 -0700
kubernetes Practice Guide
1. Docker-related content2. Introduction to Kubernets3. kuadm Installation k8s
1. Docker-related content
1. Docker Toolset
Docker Three Swordsmen: Compse, swarm, machine
docker compose: for single machine, container arrangement definition
docker swarm: integration of all Docker host resources, cluster management
docker machine: In ...
Posted by mistcat on Sun, 09 Jun 2019 09:29:54 -0700
Deployment of production-level k8s cluster with kubeadm
Summary
kubeadm has been supported by cluster deployment, and in version 1.13, GA, master and etcd are clustered deployments. It is also the most recommended deployment mode for government officials. kubeadm is promoted by its sig group. kubeadm has many features of kubernetes. Next, we will practice and understand its charm.
Bid mark
1. Build ...
Posted by Sweeney on Sat, 18 May 2019 01:22:19 -0700
K8S Cluster tls Certificate Management
In the k8s master highly available practice scenario, the certificate of kube-apiserver needs to be updated, VIP and slave IP added, and then the certificate is re-issued.Recalling the whole process of K8S cluster building, the easiest to be confused is the configuration certificate link, so this paper combs the certificates us ...
Posted by kiss-o-matic on Thu, 16 May 2019 06:00:52 -0700
kubernetes 1.13.3 Upgraded to 1.14.1
Related recommendations
The kubernetes environment of this article: https://blog.51cto.com/billy98/2350660
I. description
This article describes how to upgrade the Kubernetes cluster created using kubeadm from version 1.13.x to version 1.14.x.
Only one MINOR version can be upgraded to the next MINOR version, or between PATCH versions of the s ...
Posted by kevinlcarlson on Tue, 14 May 2019 11:18:11 -0700
kubeadm best practices for kubernetes
Start a secure kubernetes cluster using kubeadm
Official Document Reference Links: https://kubernetes.io/docs/setup/independent/install-kubeadm/
Environmental preparation
CentOS 7
At least 2G or more of memory
At least two CPU s
Network connectivity for each machine in the cluster (firewall, selinux, NetworkManager turned off)
Each node has a ...
Posted by ldsmike88 on Sat, 11 May 2019 06:22:36 -0700
ali lxcfs daemonset mode
At first, the privilege mode of apiserver, kubelet node is opened in accordance with the relevant documents - allow-privileged=true, and then executed with ali document, it can not run at all. Referring to issue in github, we know that it's all about why the problem doesn't work, but the response is not clear, and it does mention the need to ...
Posted by wilzy1 on Sat, 11 May 2019 01:22:20 -0700
K8S1.14 High Availability Production Cluster Deployment Scheme
system description
System Component Version
Operating System: CentOS 7.6
Kernel: 4.4
Kubernetes: v1.14.1
Docker: 18.09 (supported 1.13.1, 17.03, 17.06, 17.09, 18.06, 18.09)
Etcd: v3.3.12
Flannel: v0.11
cni-plugins: v0.7.5
CoreDNS: 1.4.0
Schematic diagram
Architecture description:
Use six hosts, three Master nodes, three node nodes
The Kube ...
Posted by aaronlzw_21 on Sat, 11 May 2019 01:18:23 -0700
Kubernetes 1.13.1 + etcd 3.3.10 + flanneld 0.10 cluster deployment
New features of Kubernetes 1.13
Using kubeadm (GA) to simplify Kubernetes cluster management
Most engineers with Kubernetes should be able to use kubeadm. It is an important tool for managing the life cycle of a cluster, from creation to configuration to upgrade; now kubeadm has officially become GA. Kubeadm handles the guidan ...
Posted by phpanon on Tue, 07 May 2019 07:20:38 -0700
Modifying Volume Information for Online Applications in K8S Cluster
Modify NAS version: from v4 to v3
1. To modify the nfs version, the nas volume needs to be reloaded, and the pod needs to be restarted.
2. If deployment application is used, refer to the following example. If deployment application is used with pod, the deployment template of pod is changed in the following example.
Pre-modification application ...
Posted by Stole on Thu, 18 Apr 2019 01:30:32 -0700