Deployment of k8s components on the second master

Then in the first part, before deploying Kubernetes, make sure that etcd, flannel and docker work normally, otherwise, solve the problem first and then continue. Three main roles are deployed: Kube apiserver Kube Controller Manager Kube scheduler 1. Generate Certificate (on the master) 1 establish a directory to store certificates cat > ca- ...

Posted by Nexy on Fri, 18 Oct 2019 21:17:38 +0200

Flannel working principle and source code implementation of Kubernetes network analysis

Flannel is an open-source CNI network plug-in of cereos. The figure below shows a schematic diagram of a data package provided by flannel official website after packet, transmission and unpacking. From this picture, we can see that the docker0 of two machines are in different segments: 10.1.20.1/24 and 10.1.15.1/24. If you connect the Backend S ...

Posted by ben2.0 on Fri, 18 Oct 2019 06:03:21 +0200

kubernetes version upgrade strategy

Kubbernets Version Compatibility Before upgrading, you need to understand the relationship between versions: The kubernetes version is named XYZ, where X is the primary version, Y is the secondary version, and Z is the patched version.For example, 1.16.0 The version numbers of all K8s components kube-controller, kube-scheduler and kubelet sha ...

Posted by phphead on Thu, 10 Oct 2019 11:51:56 +0200

DNS error java.net.UnknownHostException in kubernetes cluster

problem Recently, the business log frequently reported java.net.UnknownHostException. At first, I thought that kubernetes could not find SVC in the running process. If there is no endpoint in svc, it should be rejected by the newspaper connection, and it can not be resolved to the host name. My first reaction is that SVC does not exist in dns. ...

Posted by Daveyz83 on Thu, 10 Oct 2019 10:39:06 +0200

Deploying kubernetes 1.16.0 high availability cluster requires only two steps

Course wget https://github.com/fanux/sealos/releases/download/v2.0.7/sealos && chmod +x sealos && mv sealos /usr/bin sealos init --passwd YOUR_SERVER_PASSWD \ --master 192.168.0.2 --master 192.168.0.3 --master 192.168.0.4 \ --node 192.168.0.5 \ --pkg-url https://sealyun.oss-cn-beijing.aliyuncs.com/cf6bece970f6da ...

Posted by greenie__ on Fri, 27 Sep 2019 09:22:08 +0200

Step by Step! Kubernetes Continuous Deployment Guide

This paper is the Kubernetes continuous deployment workflow, which is summarized step by step from zero basis through the author's own practice. The article begins with the preparation of tools in the early stage, and then proceeds to the final deployment of repository, testing, mirror building, pipeline building. All the work processes are sho ...

Posted by Errant_Shadow on Thu, 05 Sep 2019 09:12:12 +0200

Installing jenkins in k8s and realizing dynamic generation of jenkins slave

Install jenkins1. Create a namespace$ kubectl create namespace kube-ops2. Create pvc for jenkins (you can also use storage classes) apiVersion: v1 kind: PersistentVolume metadata: name: opspv spec: capacity: storage: 2Gi accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Delete nfs: server: 192.168.1.244 path: ...

Posted by passagewds on Wed, 04 Sep 2019 17:14:12 +0200

ingress-nginx of Kubernetes Advancement

ingress-nginx of Kubernetes Advancement Catalog:Best way to access applications from outside Configuration Management Three Data Volumes and Data Persistence Volumes Fourth, Re-discussion on Stateful Application Deployment Five K8S Security Mechanism In the first place, if you choose node port to expose ports, you need to determine whether the ...

Posted by knford on Wed, 04 Sep 2019 15:11:45 +0200

Installing prometheus in k8s cluster

In earlier versions, Kubernetes provided a combination of heapster, influxDB and grafana to monitor and control systems. Now the more popular monitoring tool is prometheus, which is an open source version of Google's internal monitoring and alarm system. Compared with other traditional monitoring tools, Prometheus has the following characteris ...

Posted by vegnadragon on Sat, 24 Aug 2019 17:20:00 +0200

Kubernetes GPU Cluster Automation Deep Learning Training

Reference Blog: http://www.infoq.com/cn/articles/kubernetes-gpu-cluster-to-automate-deep-learning-trainin 2018.2.4, if you change the source, you can not turn over the wall.Update reference https://github.com/EagleChen/kubernetes_init #Cluster: Maste ...

Posted by bobbfwed on Thu, 22 Aug 2019 04:22:26 +0200