In a Kubernetes cluster, application performance can be examined at many different levels: containers, pods, services, and whole clusters.
Kubernetes Basic
detail: Kubernetes Components
kubelet
- kubelet is the primary node agent. It watches for pods that have been assigned to its node (either by apiserver or via local configuration file).
Clustering etcd
On each node, copy the etcd.yaml
file into /etc/kubernetes/manifests/etcd.yaml
NodePort
- 编辑一个
service
:kubectl -n kube-system edit service kubernetes-dashboard
kubectl proxy
kubectl proxy
creates proxy server between your machine and Kubernetes API server. By default it is only accessible locally (from the machine that started it).- To access HTTPS endpoint of dashboard go to:
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
- To access HTTP endpoint of dashboard go to:
http://localhost:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/
- To access HTTPS endpoint of dashboard go to:
相关教程
Kubernetes Dashboard
自建 Docker Registry
相关资料
- etcd
- etcd - GitHub
- etcd is a distributed reliable key-value store for the most critical data of a distributed system.
- etcd is used as Kubernetes’ backing store. All cluster data is stored here. Always have a backup plan for etcd’s data for your Kubernetes cluster.
- Building High-Availability Clusters - We choose to use the kubelet that we run on each of the worker nodes.
- Clustered etcd already replicates your storage to all master instances in your cluster. This means that to lose data, all three nodes would need to have their physical (or virtual) disks fail at the same time.
- Tools for Monitoring Compute, Storage, and Network Resources
- Learn the Kubernetes Key Concepts in 10 Minutes