Kubernetes有状态集群服务部署与管理(-37张)课件.ppt

上传人:牧羊曲112 文档编号:1286072 上传时间:2022-11-04 格式:PPT 页数:37 大小:2.77MB
返回 下载 相关 举报
Kubernetes有状态集群服务部署与管理(-37张)课件.ppt_第1页
第1页 / 共37页
Kubernetes有状态集群服务部署与管理(-37张)课件.ppt_第2页
第2页 / 共37页
Kubernetes有状态集群服务部署与管理(-37张)课件.ppt_第3页
第3页 / 共37页
Kubernetes有状态集群服务部署与管理(-37张)课件.ppt_第4页
第4页 / 共37页
Kubernetes有状态集群服务部署与管理(-37张)课件.ppt_第5页
第5页 / 共37页
点击查看更多>>
资源描述

《Kubernetes有状态集群服务部署与管理(-37张)课件.ppt》由会员分享,可在线阅读,更多相关《Kubernetes有状态集群服务部署与管理(-37张)课件.ppt(37页珍藏版)》请在三一办公上搜索。

1、Kubernetes有状态集群服务,部署与管理,Kubernetes有状态集群服务部署与管理,Agenda, Background What is Kubernetes? Run stateful serviceson Kubernetes Kubernetes Storage Volume Persistent Volume Dynamic StorageProvision, Kubernetes Stateful Service Features Init Container Pet Set Run MySQL Cluster on Kubernetes Galera MySQL Intr

2、oduction Deploy MySQL Cluster with PetSet Cluster Operation on Kubernetes,Agenda Background Kuberne,What is Kubernetes,What is Kubernetes,What is Kubernetes,What is Kubernetes,What is Kubernetes,What is Kubernetes,What is Kubernetes,Pet,Cattle,What is KubernetesPetCattle,Run Stateful Service on Kube

3、rnetes, Stateless services are popular in containerized world,because they are disposable and easy to be re-createdwith container images., Beyond stateless services like web server, users are,increasingly deploying stateful services with containers,to benefit from “build once, run anywhere” and to,i

4、mprove bare metal efficiency/utilization., These “pets” bring new requirements including longer,life cycle, configuration dependencies and statefulfailover. Container orchestration must address theseneeds to successfully deploy and scale apps.,Run Stateful Service on Kubern,Run Stateful Service on K

5、ubernetes,Stateless Pod RCReplica Set Service,Stateful Volume PersistentVolume,ClusteredPet SetInit ContainerHeadless ServiceDynamic Storage,Provision,Run Stateful Service on Kubern,Agenda, Background What is Kubernetes? Run stateful serviceson Kubernetes Kubernetes Storage Volume Persistent Volume

6、Dynamic StorageProvision, Kubernetes Stateful Service Features Init Container Pet Set Run MySQL Cluster on Kubernetes Galera MySQL Introduction Deploy MySQL Cluster with PetSet Cluster Operation on Kubernetes,Agenda Background Kuberne,Kubernetes Storage, Node Based,Volume, emptyDir hostPath, Use Cas

7、es:, Store temp data Data sharing,among,containers,Kubernetes Storage Node Based,Kubernetes Storage, hostPath, emptyDir,Kubernetes Storage hostPath,Kubernetes Storage, Cross Node Volume,Kubernetes Storage Cross Nod,Kubernetes StorageKubernetes Cluster,Shared Volume,Various volume plugins,Unshared Vo

8、lume,NodeC,C,C,C,NodeC,C,C,C,NodeC C,C,C,emptyDirhostPathgcePersistentDiskawsElasticBlockStoreiscsirbdazureFileVolume,nfshostPathglusterfsflockercephfssecretvsphereVirtualDisk,Kubernetes StorageShared Volum,Kubernetes Storage, Add your volume plugin,Kubernetes Storage Add your v,Kubernetes Storage,

9、Persistent Volume & Persistent Volume Claim, PV/PVC abstracts details of how storage is provided,from how it is consumed., PV/PVC are API resources., PVs are volume plugins like Volumes, but have a,lifecycle independent of any individual pod that usesthe PV.,Kubernetes Storage Persistent,Kubernetes

10、Storage, PV Access Modes,Kubernetes Storage PV Access,Kubernetes Storage PV Lifecycle,Provisioning,Binding,Using,Releasing,Reclaiming,StaticDynamicAvailable,Bound,Released,RetainDeleteRecycleFailed,Kubernetes StorageProvisionin,Kubernetes Storage, PV Provision & Binding Process,Kubernetes Storage PV

11、 Provisi,kind: StorageClassapiVersion:storage.k8s.io/v1beta1metadata:name: slowprovisioner: kubernetes.io/gce-pdparameters:type: pd-standard,Kubernetes Storage Dynamic Storage Provision,kind: StorageClassapiVersion:storage.k8s.io/v1beta1metadata:name: fastprovisioner:kubernetes.io/gce-pdparameters:t

12、ype: pd-ssd,kind: StorageClassKubernetes,kind: PersistentVolumeClaim,apiVersion: v1,metadata: name: claim1,annotations: ,volume.beta.kubernetes.io/storage-class: fast,Kubernetes Storage Dynamic Storage Provision,spec: accessModes: ReadWriteOnce,resources: requests: ,storage: 30Gi,This claim will res

13、ult in an SSD-like Persistent Disk beingautomatically provisioned. When the claim is deleted, the volume willbe destroyed.,kind: PersistentVolumeClaim,Agenda, Background What is Kubernetes? Run stateful serviceson Kubernetes Kubernetes Storage Volume Persistent Volume Dynamic StorageProvision, Kuber

14、netes Stateful Service Features Init Container Pet Set Run MySQL Cluster on Kubernetes Galera MySQL Introduction Deploy MySQL Cluster with PetSet Cluster Operation on Kubernetes,Agenda Background Kuberne,Init Container What is Init Container,Sequentially executed containers in a podInitialize shared

15、 volumesAlways run to completionUsed on a pod, replica set, deployment, daemonset, pet set or job.,Init Container 1,Shared Volumes,Init Container 2,PrimaryContainer,Pod,Init ContainerSequentially ex,Init Container Why Init Container,Waiting for other components to be availablePerforming configuratio

16、nRegistering the pod into a central databaseDownloading application dependencies,Init ContainerWaiting for ot,Init Container,Init Container,Pet Set, Pet vs PodPetStatefulIdentityComplex,PodStatelessNoIdentitySimple,Pet Set Pet vs PodPod,Pet Set,StableStorage,NetworkIdentityOrdinalIndex,Pet,PV/PVC,He

17、adlessServicePet Set,No Cluster IPDNS RecordCreation,Pet SetStableNetworkPetPV/P,Pet Set PetSet Operations,Peer discoveryScaling a PetSetImage upgradesDeleting a PetSet,Pet SetPeer discovery,Agenda, Background What is Kubernetes? Run stateful serviceson Kubernetes Kubernetes Storage Volume Persisten

18、t Volume Dynamic StorageProvision, Kubernetes Stateful Service Features Init Container Pet Set Run MySQL Cluster on Kubernetes Galera MySQL Introduction Deploy MySQL Cluster with PetSet Cluster Operation on Kubernetes,Agenda Background Kuberne,Galera MySQL Introduction,Galera MySQL Introduction,Head

19、less Service,Deploy MySQL Cluster with PetSetPet Set,PV Pool,Init: install,Init: bootstrap,Container:mysql,PV,PV,PV,PV,PV,PVC,LocalStorage,DNS,Record,DNSRecord,DNSRecord,MySQLPet,MySQLPet,Headless ServiceDeploy MySQL C,Deploy MySQL Cluster with PetSet,Headless Service & PetSet,Deploy MySQL Cluster w

20、ith PetS,Deploy MySQL Cluster with PetSet,Init Containers,Deploy MySQL Cluster with PetS,Deploy MySQL Cluster with PetSet,Galera MySQL Container,Deploy MySQL Cluster with PetS,Deploy MySQL Cluster with PetSet,Volumes & PVC,Create Pet Set,Deploy MySQL Cluster with PetS,Cluster Operation, Auto Recover

21、y, The failed pets can be automatically recreated The new created pet will use the data of the died,one, Scaling the Cluster, kubectl scale petset mysql -replicas=5, Image Upgrades, Update the image field of any container in the,podTemplate, Delete Pets one by one, the PetSet controller will,recreat

22、e it with the new image,Cluster Operation Auto Recove,Agenda, Background What is Kubernetes? Run stateful serviceson Kubernetes Kubernetes Storage Volume Persistent Volume Dynamic StorageProvision, Kubernetes Stateful Service Features Init Container Pet Set Run MySQL Cluster on Kubernetes Galera MyS

23、QL Introduction Deploy MySQL Cluster with PetSet Cluster Operation on Kubernetes,Agenda Background Kuberne,SummaryClustered Stateful Service,Storage Requirement,Cluster Requirement,Volume,Galera,MySQL,Cluster,Deployment,PV/PVC,StorageClass,HeadlessService,Pet Set,InitContainerKubernetes,AutoRecovery,ScalingUpgrade,SummaryStorage RequirementClu,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号