Posts
Let's Learn Go -- (4) Common Functions
· β˜• 3 min read
1. The main and init Functions A package can contain multiple init functions, but it must contain exactly one main function. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 package main import ( "fmt" ) func init() { fmt.

Ceph in Kubernetes
· β˜• 4 min read
1. Different Kinds of Storage 1.1 File Storage File storage is storage based on files. When accessing data, you need to provide the corresponding lookup path. It is suitable for services such as FTP and NFS. 1.2 Block Storage Block storage splits data into blocks and stores each part separately. When accessing data, the underlying storage software reassembles these scattered pieces.

Kubernetes Volumes
· β˜• 3 min read
1. Docker Storage Volumes 1.2 Volumes in Docker A Docker volume mounts a host directory into a container. Files modified inside the container are persisted to the host. Even if the container is deleted, the files on the host are retained. Docker uses /var/lib/docker/volumes/ to store container volumes. List local volumes:

Labels and Selectors in Kubernetes
· β˜• 3 min read
1. Labels 1.1 What Labels Are Labels are key-value pairs attached to an object. You can add labels directly when the object is created, or modify them dynamically afterwards. Label format: 1 2 3 4 "labels": { "key1" : "value1", "key2" : "value2" } Format requirements: Key: must be unique Value: must start with a letter or a digit, may contain letters, digits, hyphens, dots, and underscores, and is at most 63 characters long 1.

Open Source Is Refactoring the Business Model
· β˜• 7 min read
Adobe acquired Magento for $1.67 billion, Microsoft acquired GitHub for $7.5 billion, IBM acquired Red Hat for $34 billion β€” open source turns out to be a good business too. This article is mainly a record of, and some thoughts about, open source. 1. What Open Source Is 1.1 History In 1969, Bell Labs shared the Unix source code with the community, laying an important foundation for open source.