Operator Pattern 用 Go 扩展 Kubernetes 的最佳实践
自此,CRD + controller-runtime 逐渐成为开发 operator 的首选 Operator Pattern 是官方定义的标准扩 展机制,是 K8s Native Application; Operator = CRD + control loop, i.e, Declaretive API + Automation; kubebuilder + controller-runtime Operator waits for managed resources to reach a healthy state • Operator conveys readiness of application or managed resources to the user leveraging the status block of the Custom Resource Configuration Operands • Operator supports add/removing members to a clustered Operand • Operator enables application-aware scaling of the Operand Monitoring • Operator exposing metrics about its health • Operator0 码力 | 21 页 | 3.06 MB | 9 月前3K8S安装部署开放服务
emptyDir: {} {{- end }} vi influxdb2/templates/job-setup-admin.yaml args: - -c - | influx setup -f \ --host http://{{ template "influxdb apiVersion: v2 name: openservice description: A Helm chart for iSurpass Openservice type: application version: 1.0.0 appVersion: 1.18.9 Step2. values.yaml vi openservice/values.yaml # Default yaml apiVersion: v2 name: beehive description: A Helm chart for iSurpass Beehive type: application version: 1.0.0 appVersion: 1.18.0 Step2. values.yaml vi beehive/values.yaml # Default0 码力 | 54 页 | 1.23 MB | 1 年前3Using Kubernetes for handling second screen experience of european tv show
televison broadcaster TV2 asked us ● To create an application which works on all devices ● To create an admin interface to run the show ● The application should be able to scale quickly but keep lowest Requests Application architecture Application architecture PHP-based Admin application Shared state in Redis and SQL database Scalable userfacing API in GoLang Queuing system Application technologies Gitlab runner Dockerhub Pod Pod Pod -Build -Test -Push to dockerhub -Deploy Application infrastructure The services around Kubernetes Take control Easy to manage and scale Experience0 码力 | 28 页 | 3.86 MB | 1 年前3Node Operator: Kubernetes Node Management Made Simple
environment • Hundreds of Cluster for CI/CD • 500+ Nodes / Cluster Background: Operation Requirements • Setup & Teardown Cluster fast and convenient • Add & delete Node at any time • Upgrade Master & Node Components used to deploy our application. • Meta-Cluster: used to set up Biz-Cluster master components. We add Biz-Cluster master nodes to Meta-Cluster. • User: SREs who can setup & upgrade Biz-Cluster0 码力 | 18 页 | 11.70 MB | 1 年前301. K8s扩展功能解析
Rancher提供官方认证和支持的分发 版,紧跟上游Kubernetes项目 © 2017 Rancher Labs, Inc. Rancher 与 Kubernetes User Interface | Application Catalog | Monitoring | Logging Management Plane Infrastructure Services - Policy Management aggregation layer • Running Kubernetes 1.7 Cluster • Enable apiserver flags © 2017 Rancher Labs, Inc. Setup an Extension API Server • Use apiserver-builder to build your own API server • https://github.c0 码力 | 12 页 | 1.08 MB | 1 年前3Kubernetes Native DevOps Practice
other DevOps/third-party tools • Easy to be customized as user requirements are diverse • Easy to setup, maintain, extend and scale • Reduce the learning curve for customer and ourselves • Get consistent storage service once user build completes - volumes Storage APIs user build task • build the application package init task • prepare code repository sidecar build task lifecycle - preStop - volumes0 码力 | 21 页 | 6.39 MB | 1 年前3Kubernetes开源书 - 周立
,促进组合应⽤程序和保留”⼀个应⽤程序的每个容器“模型 Mounting storage systems Distributing secrets Checking application health Replicating application instances Using Horizontal Pod Autoscaling Naming and discovering Balancing ashboard:/proxy/#!/overview? namespace=default 参考: https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ 02-安装单机版Kubernetes 9 使⽤Kubespray部署⽣产可⽤的Kubernetes集群 (1.11.2) 前提:科学上⽹,或⾃⾏将gcr 内镜像 Installing Kubernetes On-premises/Cloud Providers with Kubespray:https://kubernetes.io/docs/setup/custom- cloud/kubespray/ 03-使⽤Kubespray部署⽣产可⽤的Kubernetes集群(1.11.2) 14 K8s组件 本⽂概述了Kubernetes集群中所需的各种组件。0 码力 | 135 页 | 21.02 MB | 1 年前3Kubernetes Use it, Contribute to it, and Enjoy it!
Versioning 4. The easy way to use it 5. Demo 6. Q & A Table of Solutions https://kubernetes.io/docs/setup/pick-right-solution/ Which one should I pick ? I'm a user of some Cloud Just follow its instructions com/kubernetes/kubernetes/blob/master/hack/local-up-cluster.sh related links https://kubernetes.io/docs/setup/independent/install-kubeadm https://github.com/kubernetes-sigs/kubeadm-dind-cluster https://microk8s0 码力 | 45 页 | 3.11 MB | 1 年前3k8s操作手册 2.3
若不能,则需要提前下载所需镜像到所有节点/或者指定使用内部镜像仓库 # kubectl apply --server-side -f ./setup/ #初始化设置, k8s v1.22版本开 始支持此命令 # kubectl create -f ./setup/ #初始化设置,适用于k8s所有版本,与 上面二选一 # kubectl0 码力 | 126 页 | 4.33 MB | 1 年前3实际案例Kubernetes on Supporting 1 Million Bike-Taxi Drivers in Indonesia
number of teams at a time • Setting up the whole Go-Viet infrastructure only took four days. Faster Setup Time • Repeatable/immutable nature of containerizing helps us to replicate our MVP launch strategy0 码力 | 37 页 | 34.65 MB | 1 年前3
共 35 条
- 1
- 2
- 3
- 4