14. k8s的選擇永遠不⽌⼀種
operator也是⼀種管理服務⽣命週期的做法
本段節錄redhat 對kubernetes operator的說法
Operator Framework
The Operator Framework is an open source project that provides developer and runtime
Kubernetes tools, enabling you to accelerate the development of an operator.
The Operator Framework includes:
•Operator SDK: Enables developers to build operators based on their expertise without
requiring knowledge of Kubernetes API complexities.
•Operator Lifecycle Management: Oversees installation, updates, and management of the
lifecycle of all of the operators running across a Kubernetes cluster.
•Operator Metering: Enables usage reporting for operators that provide specialized services.
⽽operator也可以根據需求⾃⼰撰寫,並且有些軟體有寫好的operator直接使⽤。
15. 不只是使⽤,出事了,該怎麼辦
除錯流程
• 善⽤kubectl指令
• describe , logs , events
• 了解服務流向
• containers?
• pod to pod
• pod to service
• pod to internet
• same namespace or di
ff
erent
• iptables , DNS
• observability基礎建設
16. 玲瑯滿⽬的k8s任君挑選
one k8s di
ff
erent distro
• 原⽣k8s
• redhat openshift
• OKD (community openshift)
• Rancher
• Vmware Tanzu
• google GKE (anthos)
• Amazon EKS
• Microsoft AKS
• Alibaba ACK
• kind
• k3d
• minikube
• microk8s …
17. tanzu 多雲⽣態系
Tanzu Application Service – A modern runtime for Java, .NET and Node apps
Tanzu Application Platform – modular, application-aware platform providing developer
tooling to build and deploy software quickly and securely
Tanzu Build Service – Build containers from source code for Kubernetes
Tanzu Application Catalog – Curated container catalog
Tanzu Data Services – Cloud native data and messaging
including GemFire, RabbitMQ, SQL and Greenplum
Tanzu Kubernetes Grid – Enterprise Ready Kubernetes runtime
Tanzu Mission Control – Centralized cluster management
Tanzu Observability – Enterprise observability for multi-cloud environments
Tanzu Service Mesh – Enterprise-class service mesh
湯組(⽇⽂) k8s太輕 , openshift太重 , 雲平台太貴 , 可以試試看tanzu
Tanzu Kubernetes Grid (TKG),為提供⼀致的 kubernetes 使⽤體驗,與
原⽣的 Kubernetes 完全兼容。根據部署和管理⽅式的不同,⼜分為 Tanzu
Kubernetes Grid Service for vSphere( TKGs)和 Tanzu Kubernetes Grid
Muti-cloud (TKGm)。
18. 實戰TCE (免錢社群版)
注意 : TCE,TKGm 2022時下僅⽀援 vSphere 、AWS、Azure
allinone local develop environment
Linux
4 core
8G ram
30GB disk
nonroot docker permission
bootstrap server
Linux
2 core
6G ram
nonroot docker permission
management cluster
Linux
nonroot docker permission
same subnet with workload cluster
workload cluster
Linux
nonroot docker permission
same subnet with management cluster