forked from opsnull/follow-me-install-kubernetes-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zhang Jun
committed
Jun 16, 2018
1 parent
be0247e
commit 67a0ded
Showing
45 changed files
with
1,867 additions
and
1,299 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!-- toc --> | ||
|
||
tags: kubernetes, environment | ||
|
||
# 组件版本和集群环境 | ||
|
||
## 集群组件和版本 | ||
|
||
+ Kubernetes 1.10.4 | ||
+ Docker 18.03.1-ce | ||
+ Etcd 3.3.7 | ||
+ Flanneld 0.10.0 | ||
+ 插件: | ||
- DNS: coredns | ||
- Dashboard | ||
- Heapster (influxdb、grafana) | ||
- Metrics-Server | ||
- EFK (elasticsearch、fluentd、kibana) | ||
+ 镜像仓库: | ||
- docker registry | ||
- harbor | ||
|
||
## 主要配置策略 | ||
|
||
kube-apiserver: | ||
|
||
+ 关闭非安全端口 8080 和匿名访问; | ||
+ 严格的认证和授权策略 (x509、token、RBAC); | ||
+ 开启 bootstrap token 认证,从而支持 kubelet TLS bootstrapping; | ||
+ 使用 https 和证书访问 kubelet、etcd,加密通信; | ||
|
||
kube-controller-manager: | ||
|
||
+ 3 节点高可用; | ||
+ 关闭非安全端口,在安全端口 10252 监听 https 请求; | ||
+ 使用 kubeconfig 访问 apiserver 的安全端口; | ||
+ 自动 approve kubelet 证书签名请求 (CSR),证书过期后自动轮转; | ||
+ 各 controller 使用自己的 ServiceAccount 访问 apiserver; | ||
|
||
kube-scheduler: | ||
|
||
+ 3 节点高可用; | ||
+ 使用 kubeconfig 访问 apiserver 的安全端口; | ||
|
||
kubelet: | ||
|
||
+ 使用 kubeadm 动态 bootstrap 所需的 token,而不是在 apiserver 中静态配置; | ||
+ 使用 TLS bootstrap 机制自动获取 client 和 server 证书,过期后自动轮转; | ||
+ 在 KubeletConfiguration 类型的 JSON 文件配置主要参数; | ||
+ 关闭只读端口,只在 10250 安全端口接收所有 https 请求,且对请求进行认证和授权,拒绝匿名访问和非授权访问; | ||
+ 使用 kubeconfig 访问 apiserver 的安全端口; | ||
|
||
kube-proxy: | ||
|
||
+ 使用 kubeconfig 访问 apiserver 的安全端口; | ||
+ 在 KubeProxyConfiguration 类型的 JSON 文件配置主要参数; | ||
+ 使用 ipvs 代理模式; | ||
|
||
集群插件: | ||
|
||
+ DNS:使用功能、性能更好的 coredns; | ||
+ Dashboard:支持登录认证; | ||
+ Metric 收集:heapster、metrics-server,使用 https 访问 kubelet 安全端口; | ||
+ Log:Elasticsearch、Fluend、Kibana; | ||
+ Registry 镜像库:docker-registry、harbor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.