Google開源, 基於Google內部Borghtml
kubectl get nodes
node
hello-service.yaml 配置文件後端
kubectl create -f hello-service.yaml --record
建立service kubectl get svc!grep hello-service
查看服務是否建立成功 kubectl describe svc/hello-service
查看詳細信息 kubectl run -i --tty busybox --image=busybox --restart=Never
建立容器並進入容器命令行 nslookup hello-serviceapi
hello-development.yaml配置文件 kubectl create -f hello-deployment.yaml --record=true
deployment kubectl get deployments
列出deployments安全
kubectl get pods|grep hello
kubectl logs -f hello-deployment-xxxxx-xxxx
查看日誌 經過日誌查看能夠發現服務調用被自動負載均衡到多個服務上服務器
擴展 修改development的配置文件, 修改replicas 有2改成3 運行 kubectl apply -f hello-deployment.yaml
架構
修改development的配置文件, 修改image 選項的鏡像版本 運行 kubectl apply -f hello-deployment.yaml
運行命令查看 kubectl rollout status deployment/hello-deployment
逐一升級,替換升級全部podapp
快速回滾升級 kubectl rollout undo deployments/hello-deployment
負載均衡
kubernetes1.13.1+etcd3.3.10+flanneld0.10集羣部署 https://www.kubernetes.org.cn/5025.html微服務
Kubernates對象模型 Kind Metadata Spec Operation api(kubectl)操做方法 Status etcd動態信息
Name和UID
k8s對象分類