Java learning -- file processing, generics and container classes
1, File processing
1. Create an object of File class
File Class creation function
Method name:
1.public boolean creatNewFile()(When the file with this name does not exist, create a new empty file named by this abstract pathname)
2.public boolean mkdir()(Create a folder named after this abstract pathname)
3.public boolean mkdirs()(Create ...
Posted by eflopez on Sat, 04 Dec 2021 10:15:22 -0800
Introduction to Docker container network and virtualization network
1. Virtualized network
Network Namespace is a function provided by Linux kernel and an important function to realize network virtualization. It can create multiple isolated network spaces with independent network stack information. Whether it is a virtual machine or a container, it seems as if it is running in an independent network. Moreo ...
Posted by danger2oo6 on Fri, 03 Dec 2021 14:50:35 -0800
Building kubernetes cluster in cloud networking environment
Background:
Network environment reference: Cloud networking experience Two vpc networks in Shanghai and Beijing. The servers are distributed as follows: Let's talk about why we use TencentOS Server 3.1 (TK4) system. It's not because CentOS 8 doesn't provide long-term maintenance... By the way, experience Tencent cloud's open source tencentos. ...
Posted by FamousMortimer on Fri, 03 Dec 2021 07:20:57 -0800
Let's take a brief look at vector in C + +
1, What is a vector?
A Vector is a Sequence container that encapsulates a dynamic size array. Like any other type of container, it can hold various types of objects. It can be simply considered that a Vector is a dynamic array that can store any type.
2, Container characteristics
1. Sequence
The elements in the order container are sorted ...
Posted by daimoore on Fri, 03 Dec 2021 00:00:38 -0800
Docker Mirror Management
1 What is a Docker image
The Docker image is an overlay of the file system. At the bottom is a file boot system, bootfs. Docker users will not have direct interaction with the boot file system. The second layer of the Docker image is the root file system rootfs, which is usually one or more operating systems, such as ubuntu. In Docker, the ...
Posted by websitesca on Thu, 02 Dec 2021 10:21:13 -0800
kubernetes(k8s) Note Authentication, Authorization and Access Control Authentication Users Account
Users Accounts Authenticationkubeconfig configuration fileAs mentioned earlier, communication between K8S is achieved through https, which requires authentication every time, such as when we enter a command from the command line[root@k8s-master ~]# kubectl get podRequires https authentication, and https is stateless link means that certificates ...
Posted by mtombs on Wed, 01 Dec 2021 17:53:29 -0800
k8s, persistent storage PV and PVC, static supply of PV/PVC nginx case, PV&&PVC application in mysql persistent storage actual project
1. Introduction of PV and PVC
Volume provides a very good data persistence scheme, but there are still deficiencies in manageability. Take the previous example of AWS EBS. To use Volume, Pod must know the following information in advance: The current Volume is from AWS EBS. The EBS Volume has been created in advance and the exact volume ID ...
Posted by FlipinMonkeyPie on Wed, 01 Dec 2021 15:27:12 -0800
etcd backup and recovery in K8S cluster
Etcd is a very important Service of kubernetes cluster. It stores all data information of kubernetes cluster, such as Namespace, Pod, Service, routing and other status information. In case of etcd cluster disaster or etcd cluster data loss, it will affect k8s cluster data recovery. Therefore, it is very important to backup etcd data to realize ...
Posted by whitchman on Wed, 01 Dec 2021 10:13:38 -0800
Basic usage of docker
1, What is docker
Containers in docker:
lxc --> libcontainer --> runC
2, OCI & OCF
OCI
Open Container-initiative
Led by the Linux foundation, it was founded in June 2015It aims to develop an open industrial standard around container format and runtimecontains two specifications
the Runtime Specification(runtime-spec)the ...
Posted by alsouno on Wed, 01 Dec 2021 07:27:54 -0800
Container image security in cloud native Era
Hello, I'm Zhang Jintao.Kubernetes, as the cornerstone of the cloud, has brought us great convenience. More and more companies have also applied kubernetes to the production environment. However, while enjoying the convenience it brings, we also need to pay attention to some potential safety hazards.In this article, I will focus on container im ...
Posted by bschmitt78 on Tue, 30 Nov 2021 03:13:44 -0800