Kubernetes架构
Kuberneters Cluster由Master和Node组成,节点上运行着若干Kubernets服务。
Master节点
Master节点是kubernets Cluster的大脑,运行着的Daemon服务包括kube-apiserver, kube-scheduler, kube-controller-manager, etcd, Pod网路(例如flannel)等。


Node节点
Node是Pod运行的地方,k8s支持Docker,rkt等容器Runtime。Node上运行的组件有kubelet, kube-proxy, Pod网络等。


Replication Controller
Replication Controller通过各种Controller来管理pod的生命周期,有Deployment,ReplicaSet,DaemonSet,StatefulSet,Job等。
Deployment


给Node加上label标签,然后在yml文件中spec.template.spec.nodeSelector属性中指定label
DaemonSet

Job

定时Job

网友评论