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).
,explore app,
expose app publicly,
scale app
,update app.
refer this:
https://kubernetes.io/docs/tutorials/kubernetes-basics/scale/scale-interactive/