Configuration
Application Configuration Management: The Assembly Model and the Template Model
· β˜• 4 min read
Application configuration management is about the configuration that an application depends on at runtime, which is different from the static configuration of a project. This article is a summary drawn from real development work, offered for your reference; discussion is welcome too. 1. About Configuration Management 1.1 Terminology Configuration item A single key=value pair

How to Add a New Access Entry Point to the Kubernetes Apiserver
· β˜• 2 min read
1. How to Access a Remote Cluster Locally During development, you often need to connect directly to a remote Kubernetes cluster. The usual approach is to copy /etc/kubernetes/admin.conf to your local ~/.kube/kubeconfig. But the kubeconfig’s server address is kubernetes.default.svc. So we need to configure a hosts entry: 1 1.1.1.1 kubernetes.default.svc If you need to switch between different clusters, you not only have to swap the kubeconfig but also modify hosts.

How to Change Kubelet Startup Parameters
· β˜• 1 min read
1. Edit the Kubelet Configuration File 1 vim /etc/systemd/system/kubelet.service.d/10-kubeadm.conf Modify the relevant Kubelet parameters ExecStart=/usr/local/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS You can list the available parameters with the following command: 1 kubelet --help For example, if you need to change --sync-frequency in KUBELET_KUBECONFIG_ARGS, the period for syncing container configuration, the default value is 1 min.

Etcd and Etcdctl in Practice
· β˜• 5 min read
1. Basic Introduction to Etcd Etcd is a distributed Key/Value storage system. Through distributed locks, leader election, and write barriers it achieves distributed coordination, offering highly available, persistent data storage and retrieval services. How it works Every Etcd node stores a complete copy of the data, and at any moment

Configuring a Proxy for Kubernetes
· β˜• 1 min read
Usually, running a command of the form export http_proxy/https_proxy on the host is enough to set a Proxy. However, settings on the host do not take effect inside containers. Below are several configuration approaches. 1. Configure Docker’s proxy - Node level Configure this on the node that needs the Proxy.