1.k8s concept

Cluster:
Master调度Node

Pod:
smallest work cell ,run on the node
related containers run on the same pod to share resoures and lifecycle
two ways: one-container-per-Pod ,several—related-containers-per-Pod
for example:
we didn’t need to put Tomcat container and MYSQL container into the same Pod because they exchange data by JDBC ,not by the shared storage and they have different lifecycle.

Controller:run Pod
Deployment Controller manages Pods

Service: explore Pod
Provides IP\port\load balance

Namespace:
Divide the physical cluster into different virtual clusters ,by default has the default and kube-system Namespaces.

2.Create Kubernetes cluster

deploy app

Deployment=app
Pod=sets of container, all the containers in the same pod will share the same IP and Port space(network namespace).
k8s first experience
,explore app,

expose app publicly,
k8s first experience

scale app
k8s first experience
,update app.

refer this:
https://kubernetes.io/docs/tutorials/kubernetes-basics/scale/scale-interactive/

相关文章:

  • 2021-10-17
  • 2021-08-10
  • 2021-10-13
  • 2021-07-09
  • 2022-01-01
  • 2022-01-16
  • 2022-12-23
  • 2021-11-07
猜你喜欢
  • 2021-10-01
  • 2021-09-24
  • 2022-01-07
  • 2021-07-10
  • 2021-10-02
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案