docker
Hc-Z
知道的越多,不知道的就越多
展开
-
docker实现单节点consul的服务注册于发现
一 搭建consul环境1.从docker-hub上搜索拉取镜像docker search consuldocker pull consul2 . 启动consul镜像单节点启动:docker run -p 8500:8500/tcp consul agent -server -ui -bootstrap-expect=1 -client=0.0.0.0服务器上不能被外部访问:...原创 2019-05-05 17:46:26 · 1816 阅读 · 0 评论 -
K8S必需条件中memory and swap accounting是什么?
memory and swap accounting是什么?memory and swap accounting是 统计Linux内核的内存和交换区为什么需要开启memory and swap?这是docker官方提示的内容Adjust memory and swap accountingWhen users run Docker, they may see these messages...原创 2019-08-24 11:54:33 · 5755 阅读 · 0 评论 -
K8S删除pod,删除之后马上又新建一个pod
查看所有podkubectl get pods删除podkubectl delete pod <podname>然后再查看所有pod,发现又新建了一个pod.这是因为deployment.yaml文件中定义了副本数量,所以还需要删除副本。查看deploymentkubectl get deployment <name>删除kubectl delete...原创 2019-08-27 16:35:40 · 8959 阅读 · 3 评论