
docker
Hc-Z
知道的越多,不知道的就越多
展开
-
docker实现单节点consul的服务注册于发现
一 搭建consul环境 1.从docker-hub上搜索拉取镜像 docker search consul docker pull consul 2 . 启动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 · 1887 阅读 · 0 评论 -
K8S必需条件中memory and swap accounting是什么?
memory and swap accounting是什么? memory and swap accounting是 统计Linux内核的内存和交换区 为什么需要开启memory and swap? 这是docker官方提示的内容 Adjust memory and swap accounting When users run Docker, they may see these messages...原创 2019-08-24 11:54:33 · 5891 阅读 · 0 评论 -
K8S删除pod,删除之后马上又新建一个pod
查看所有pod kubectl get pods 删除pod kubectl delete pod <podname> 然后再查看所有pod,发现又新建了一个pod. 这是因为deployment.yaml文件中定义了副本数量,所以还需要删除副本。 查看deployment kubectl get deployment <name> 删除 kubectl delete...原创 2019-08-27 16:35:40 · 9334 阅读 · 3 评论