Container data volume based on Docker

Container data volume What is a container data volume Review of docker concept Package the application and environment into one image data If the data is in the container, we will delete the container and lose the data! Requirement: data can be persistent Mysql, delete the container, delete the database and run! Requirement: MySQL data ...

Added by pinxxx on Thu, 27 Jan 2022 10:17:01 +0200

Docker--Docker k8s--Kubernetes storage -- kubernetes scheduling

catalogue 1. Introduction 2. Factors affecting kubernetes scheduling 2.1 nodeName 2.2 nodeSelector 2.3 affinity and anti affinity 2.3.1 node affinity 2.3.2 pod affinity 2.4 taints 2.5 instructions affecting pod scheduling 2.5.1 cordon 2.5.2 drain 2.5.3 delete 1. Introduction The scheduler uses kubernetes' watch mechanism to d ...

Added by Scooby Doo on Wed, 26 Jan 2022 16:32:28 +0200

Installing kuberneters using kubeadm

k8s installation Kubedm / kubectl / kubelet installation 1. Update apt package index and install packages required to use Kubernetes apt repository sudo apt-get update sudo apt-get install -y apt-transport-https ca-certificates curl 2. Download Google Cloud public signature key: sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyri ...

Added by greenie2600 on Tue, 25 Jan 2022 23:51:23 +0200

Atcoder beginer contest 236 ABC code style format #ifdef#else#endif ios::sync_with_stdio tie XOR map container vector container

Eight minutes a, the first two, and then the third, the head card fell off. (record the tragic experience. Just keep grinding the problem. I found this when thinking about the solution: #ifdef LOCAL #include "algo/debug.h" #else #define debug(...) 42 #endif Learn the form: #ifdef identifier Segment 1 #else Segment 2 #endif It means: w ...

Added by elie on Tue, 25 Jan 2022 22:07:13 +0200

Best practices for building multi architecture mirrors

Author: xcbeyondBlog: https://xcbeyond.cn/ In the cloud era, containerization has become a fact. Packaging and building software products into Docker images is the most basic and critical step. In the context of Xinchuang, there will be different architectures such as x86 and arm in the cloud environment. Therefore, when building images, you ne ...

Added by adammc on Mon, 24 Jan 2022 03:19:08 +0200

redis cluster summary and sentry explanation

redis cluster summary and sentry explanation Why cluster 1. A single redis is unstable. When the redis service goes down, there are no available services. 2. The reading and writing ability of a single redis is limited redis master-slave replication There is only one Master node, and there can be multiple Slave nodes As long as the ne ...

Added by billkom on Sun, 23 Jan 2022 21:52:22 +0200

Build kubernetes cluster with kubedm

Build kubernetes cluster with kubedm kubeadm Kubedm is a K8s deployment tool that provides kubedm init and kebuadm join for rapid deployment of Kubernetes clusters. The deployment of a Kubernetes cluster can be completed through two instructions: Create a Master node using kubedm initUse kubedm join < master Node IP and port > to j ...

Added by mikosiko on Sat, 22 Jan 2022 07:57:47 +0200

Basic commands of docker

Help command docker version Displays the version information of docker docker info Show docker details docker command -- help View the help documentation for the command Mirror command docker images View all local mirrorsparameter -a displays all mirrors-q display id only docker search You can also go to the docker hub ...

Added by robpoe on Thu, 20 Jan 2022 17:31:24 +0200

docker network mode

1, docker network 1. docker network principle Docker uses linux bridging. A docker container bridge is virtualized in the host machine. The default is docker0 network. When docker starts a container, it will assign an IP address to the container according to the network segment of the docker bridge. The offset method is called container I ...

Added by Bikkebakke on Thu, 20 Jan 2022 09:53:13 +0200

[C + +] STL Standard Template Library (Vector container - super detailed step-by-step example code explanation)

❥ it is mainly used for self review, plus experience exchange and sharing, one shift every day ❥ background ❀ a library is a collection of program components that can be reused in different programs. ANSI C + + includes a C++ STL (Standard Template Library), namely C + + Standard Template Library (c + + generic library). It defines commo ...

Added by bigMoosey on Wed, 19 Jan 2022 09:16:59 +0200