How To Build Kubernetes Platform (构建Kubernetes平台方案参考)
Architecture
Architecture Diagram
Non-Prod Environment
Prod Environment
Cluster Networking
Kubernetes supports for third-party netwroking the cluster via CNI plugin. for more infromation, please see Cluster Networking.
According to this chinese blog, Principles and Solutions of Kubernetes Networking from Yourongyun the three top of CNI providers for kubernetes cluster based on VMs are Project Calico, Flannel, Weave Net.
And also, here is comparison of variable networking solutions, https://github.com/xelatex/homepage/blob/master/source/_posts/Battlefield-Calico-Flannel-Weave-and-Docker-Overlay-Network.md
If just only considering performance, Project Calico should be perferred.
Container Repository
Two options as follows,
Option 1, Private Repository, such as Harbor.
Option 2, Repositories from Cloud Providers, such as AWS ECR.
Setup
We can refer to Picking the Right Solution in Kubernetes offical document to select a setup solution. Considering our goal of building a kuberletes platform based on VMs in our on-premises data center.
Minikube For Dev Env
Minikube can be engaed to create a kubernets development in a local local single machine.
For more information about Minikube, please read Running Kubernetes Locally via Minikube.
Kubeadm For Non-Prod Env
Using Kubeadm, we can build a kubernetes cluster for non-prod environment, which runs master key components as containers.
For more Kubeadm information, please see Using kubeadm to Create a Cluster.
Other IaaC For Prod Env
For creating a kubernetes cluster on VMs for Prod Env, We need to a infrastructure automation tool, such as Ansible, to have this done.
Here is a reference of Creating Kubernets Cluster via Ansible
Devops
CI/CD
Source Code Management
For small and agile web projects, such SaaS applications, considering adopting GitHub Flow. For more information, please refer to GitHub Flow.
For desk or client applications, such PC desk application, ISO/Android App, or being different time windows for delivery and release of applications, considering GitLab Flow. For more information please refer to Gitlab Flow.
PipeLine
Monitoring
Dashboard
Using Kubernetes Dashboard as Web-based UI for Kubernets clusters to manage the cluster itself along with its attendant resources.
For more information, please see Web-UI(Dashboard).
Metrics
Here is official suggested solution as follows. For more informaton, please see Tools for Monitoring Compute, Storage, and Network Resources
Grafana + Heapster / Prometheus + cAdvisor + InfluxDB
Heapster as a metircs aggregator and processor
InfluxDB time series database for storage
Grafana as a dashboarding and alerting solution
cAdvisor has been built in Kubelet, which collects host metrics like CPU, disk space, and memory utilization, in addition to container metrics.
And also, here is a practical example, How to Utilize the “Heapster + InfluxDB + Grafana” Stack in Kubernetes for Monitoring Pods.
Logging
APM
Security
Pod Service Account
For more information, please see the User Guide to Service Accounts.
Pod Security Policy
For more information, please see Pod Security Policies
Auth
Authentication
For more information, please see Authenticating
Support SSO integration, such as SAML,AD OpenID, Auth2?
Authenrization
For more information, please see https://kubernetes.io/docs/admin/authorization/
ABAC/RBAC
Multi-Tenancy
Hypernetes
For more information, please see Hypernetes: Bringing Security and Multi-tenancy to Kubernetes
Application Architecture
Microservice
Here is a chinese blog about how to select open source tools for building a micorservice.
https://mp.weixin.qq.com/s/bsuveX-E6E2fKZ24mj03nQ
Servcie Mesh
Training
Knowledge
Kubernets
Kubernetes Handbook (Chinese Version)
ETCD
For more information, please see ETCD Document.
Containter
Docker
For moe information, please see https://docs.docker.com/.
CRI-O
For more information, please see http://cri-o.io/.
OCI
OCI is a container specification named Open Container Initiative, consisting of OCI Runtime Specification and OCI Image Format
Networking
ip/route/iptables/ipvs etc
Container Netwroking
OpenVswitch
CNI - Calico/Flannel
CNM bridge/host/none/(overlay)plugin
Orgnization & People
How To Build Kubernetes Platform (构建Kubernetes平台方案参考)的更多相关文章
- 基于Kubernetes/K8S构建Jenkins持续集成平台(下)
基于Kubernetes/K8S构建Jenkins持续集成平台(下) Jenkins-Master-Slave架构图回顾: 安装和配置NFS NFS简介 NFS(Network File System ...
- 基于Kubernetes/K8S构建Jenkins持续集成平台(上)-1
基于Kubernetes/K8S构建Jenkins持续集成平台(上)-1 Jenkins的Master-Slave分布式构建 什么是Master-Slave分布式构建 Jenkins的Master-S ...
- 基于Kubernetes/K8S构建Jenkins持续集成平台(上)-2
基于Kubernetes/K8S构建Jenkins持续集成平台(上)-2 Kubernetes实现Master-Slave分布式构建方案 传统Jenkins的Master-Slave方案的缺陷 Mas ...
- 基于Docker&Kubernetes构建PaaS平台基础知识梳理
点击上方"开源Linux",选择"设为星标" 回复"学习"获取独家整理的学习资料! 基于Docker&Kubernetes构建Paa ...
- 通过重新构建Kubernetes来实现更具弹性的容器编排系统
通过重新构建Kubernetes来实现更具弹性的容器编排系统 译自:rearchitecting-kubernetes-for-the-edge 摘要 近年来,kubernetes已经发展为容器编排的 ...
- bluemix部署(二)构建kubernetes工作环境
本文接上篇.在bluemix中构建kubernetes容器. 1.创建集群 左上角的三横,选容器,然后创建集群. 注意区域,免费版,给个名字,创建集群吧. 继续正在部署,这个可能要15-30分钟,真不 ...
- Kubernetes+Docker的云平台在CentOS7系统上的安装
Kubernetes+Docker的云平台在CentOS7系统上的安装 1.运行VirtualBox5. 2.安装CentOS7系统. 注意:选择Basic Server类型 安装过程略. 3.修改计 ...
- 使用 Elastic 技术栈构建 Kubernetes全栈监控
以下我们描述如何使用 Elastic 技术栈来为 Kubernetes 构建监控环境.可观测性的目标是为生产环境提供运维工具来检测服务不可用的情况(比如服务宕机.错误或者响应变慢等),并且保留一些可以 ...
- 10分钟搭建Kubernetes容器集群平台【转】
官方提供3种方式部署Kubernetes minikube Minikube是一个工具,可以在本地快速运行一个单点的Kubernetes,尝试Kubernetes或日常开发的用户使用.不能用于生产环境 ...
随机推荐
- 「HNSDFZ暑期集训 测试1」「LuoguT36485」 括号(贪心
Description 给定一个由左括号'('和右括号')'组成的字符串s,其中第i个括号的权值为ai. 我们定义一个括号序列t为合法括号序列,当且仅当满足下列条件之一: 1.t为空串 2.t=(A) ...
- 【HDU 2089】 不要62
[题目链接] 点击打开链接 [算法] 数位DP 和上一题 : HDU3555很像 [代码] #include<bits/stdc++.h> using namespace std; #de ...
- JAVA RTTI
基础类可接收我们发给派生类的任何消息,因为两者拥有完全一致的接口.我们要做的全部事情就是从派生上溯造型,而且永远不需要回过头来检查对象的准确类型是什么.所有细节都已通过多态性获得了完美的控制. 但经过 ...
- Bootstrap-CSS:响应式实用工具
ylbtech-Bootstrap-CSS:响应式实用工具 1.返回顶部 1. Bootstrap 响应式实用工具 Bootstrap 提供了一些辅助类,以便更快地实现对移动设备友好的开发.这些可以 ...
- VC将同一份代码同时编译为Dll和Exe的方法
开发中经常遇到这样的情况,需要开发一个某某功能的接口Dll,但是Dll不能直接调试,你至少需要一个Loader 但是Loader和Dll本身不在同一个工程里,虽然都在本机的话并不影响源码级调试,但是总 ...
- 51nod 1344 【前缀和】
思路:求一下最小负数的前缀和 #include<cstdio> #include <map> #include<iostream> #include<stri ...
- bzoj 2555: SubString【后缀自动机+LCT】
一直WA--找了半天错的发现居然是解密那里的mask其实是不能动的--传进去的会变,但是真实的那个不会变-- 然后就是后缀自动机,用LCT维护parent树了--注意不能makeroot,因为自动机的 ...
- (4)javascript的运算符以及运算符的优先级
运算符的使用方法 在javascript的程序中要完成各种各样的运算,是离不开运算符的. 在javascript中,按运算符类型可以分为 ...
- django相关命令
1 安装django pip3 install django 2 django-admin命令 django-admin startproject mysite #创建一个项目 3 manage.py ...
- Windows下DVWA安装指南
注意:DVWA需要依赖httpd.PHP.MySQL.php-mysql等应用或组件,最简单的方法是安装wampserver(http://www.wampserver.com/),安装完了所需的各种 ...