K8s特性
自动化上线和回滚
Kubernets会分步骤地将针对应用或其配置的更改上线,同时监视应用程序运行状况以确保你不会同事终止所有实例。如果出现问题, k8s会为你回滚所作更改。你应该充分利用不断成长的部署方案生态系统
服务发现与负载均衡
无需修改你的应用程序即可使用陌生的服务发现机制,Kubernetes为容器提供了自己的IP地址和一个DNS名称,并且可以在他们之间实现负载均衡
Kubernets基础模块
https://kubernetes.io/zh/docs/tutorials/kubernetes-basics/
kubectl version
kubectl get nodes
kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
kubectl get deployments
- searched for a suitable node where an instance of the application could be run (we have only 1 available node)
- scheduled the application to run on that Node
- configured the cluster to reschedule the instance on a new Node when needed