k8s开发基础-Deployment的autoscale(需安装metric-server)和rollback
弹性伸缩的接口:Deployment版本回滚接口:下面是配置的过程:#kubectlcreatedeploymentweb--image=nginx:latest--replicas=2#kubectlexposedeployment/web--type=NodePort--port=1080--target-port=80deployment副本扩容和缩容#kubectlscaledeploym