<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Insomnia_Mr的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Insomnia_Mr</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Insomnia_Mr]]></copyright><item><title><![CDATA[k8s-secret与configmap]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107607356</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107607356</guid><author>Insomnia_Mr</author><pubDate>Mon, 27 Jul 2020 11:53:11 +0800</pubDate><description><![CDATA[secret与configmapSecret创建方式使用键值对文件方式yaml文件Pod通过volume的方式使用secretPod通过环境变量的方式使用secretConfigmap创建方式键值对文件yamlPod通过volume使用configmapPod通过环境变量使用configmap
Secret
Secret 解决了密码、token、密钥等敏感数据的配置问题，而不需要把这些敏感数据暴露到镜像或者 Pod Spec 中。Secret 可以以 Volume 或者环境变量的方式使用
创建方式
使用键值]]></description><category></category></item><item><title><![CDATA[k8s-滚动更新与健康检查]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107507088</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107507088</guid><author>Insomnia_Mr</author><pubDate>Wed, 22 Jul 2020 12:06:17 +0800</pubDate><description><![CDATA[Rolling Updata与Health Check更新与回滚滚动更新实例：部署httpd2.2更新到2.4回滚实例：httpd指定回滚Health Check默认的健康检查实例Liveness探测实例Readiness探测实例Scale up使用health check实例滚动更新中使用health check实例手动设置 maxSurge和maxUnavailable
更新与回滚
滚动更新
滚动更新一次只更新一小部分副本，成功后再更新更多的副本，最终完成所有副本，最大的好处是零停机。
实例：部署htt]]></description><category></category></item><item><title><![CDATA[k8s-service]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107449771</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107449771</guid><author>Insomnia_Mr</author><pubDate>Sun, 19 Jul 2020 19:52:18 +0800</pubDate><description><![CDATA[Service是Kubernetes中最核心的概念，正是因为对此概念的支持，Kubernetes在某种角度下可以被看成是一种微服务平台。Kubernetes中的pod并不稳定，比如由ReplicaSet、Deployment、DaemonSet等副本控制器创建的pod，其副本数量、pod名称、pod所运行的节点、pod的IP地址等，会随着集群规模、节点状态、用户缩放等因素动态变化。Service是一组逻辑pod的抽象，为一组pod提供统一入口，用户只需与service打交道，service提供DNS解析名称]]></description><category></category></item><item><title><![CDATA[k8s-Daemonset与Job]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107389567</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107389567</guid><author>Insomnia_Mr</author><pubDate>Fri, 17 Jul 2020 12:01:38 +0800</pubDate><description><![CDATA[Daemonset与JobDaemonset实例1：busybox实例2：node-exporterJob
Daemonset
一个DaemonSet确保了所有的node上仅有一个的Pod的一个实例。当node被添加到集群中，Pod也被添加上去。当node被从集群移除，这些Pod会被垃圾回收。删除一个DaemonSet将会清理它创建的Pod
实例1：busybox
vim busybox.yml


apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: ]]></description><category></category></item><item><title><![CDATA[k8s-deployments]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107343349</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107343349</guid><author>Insomnia_Mr</author><pubDate>Tue, 14 Jul 2020 18:30:57 +0800</pubDate><description><![CDATA[为了满足不同业务场景，k8s开发了Deployment、ReplicaSet、DaemonSet、StatefuleSet、Job 等多种 Controller
deploymentsdeployments创建流程运行deployments查看deployments查看replicaset查看pod总结流程Deployments YAML创建yaml伸缩 Scale Up/Downk8s的Failover用label控制pod的位置
deployments创建流程
运行deployments
运行一个dep]]></description><category></category></item><item><title><![CDATA[K8s基本概念与基本功能使用]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107302149</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107302149</guid><author>Insomnia_Mr</author><pubDate>Sun, 12 Jul 2020 18:11:26 +0800</pubDate><description><![CDATA[概念与基本功能使用Kubernetes的整体架构master节点API Server（API服务器）Scheduler（调度器）ControllerEtcdnode节点Kubeletkube proxy基本功能使用部署应用
Kubernetes的整体架构

Kubernetes属于主从分布式架构，主要由Master Node和Worker Node组成，以及包括客户端命令行工具kubectl和其它附加项。

Master Node：作为控制节点，对集群进行调度管理；Master Node由API Serve]]></description><category></category></item><item><title><![CDATA[Kubernetes部署]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107213174</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107213174</guid><author>Insomnia_Mr</author><pubDate>Wed, 08 Jul 2020 21:25:48 +0800</pubDate><description><![CDATA[Kubernetes部署准备工作安装docker安装	Kubernetes下载镜像添加网络组件flannel使用Kubernetes初始化并加入集群简单使用
准备工作
环境：
192.168.1.10 master
192.168.1.20 node1
192.168.1.30 node2
注：内存必须在2G以上  cpu个数2个以上
以下操作均在三台实例上运行
vim /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 loc]]></description><category></category></item><item><title><![CDATA[docker-swarm Health、Secret与Stack]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107191936</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107191936</guid><author>Insomnia_Mr</author><pubDate>Tue, 07 Jul 2020 23:10:20 +0800</pubDate><description><![CDATA[Health、Secret与StackHealth CheckSecretsecret 用法实例：部署wordpressStack常用命令实例：使用stack部署wordpress
Health Check
容器启动之后，初始状态会为 starting (启动中)。Docker Engine会等待 interval 时间，开始执行健康检查命令，并周期性执行。如果单次检查返回值非0或者运行需要比指定 timeout 时间还长，则本次检查被认为失败。如果健康检查连续失败超过了 retries 重试次数，状态就会]]></description><category></category></item><item><title><![CDATA[docker-swarm网络与镜像更新回滚]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107153597</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107153597</guid><author>Insomnia_Mr</author><pubDate>Mon, 06 Jul 2020 12:16:21 +0800</pubDate><description><![CDATA[Swarm网络
swarm服务创建出来之后默认使用是bridge网络，能满足容器层次的网络通信，如果想外部访问service就需要暴露服务端口
docker service create --name my-web --replicas=3 --publish 8080:80 192.168.1.10:5000/httpd

创建服务时暴露端口给外部网络即可完成访问
curl 192.168.1.10:8080
&lt;html&gt;&lt;body&gt;&lt;h1&gt;It works!&lt;/]]></description><category></category></item><item><title><![CDATA[docker-swarm]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107058662</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107058662</guid><author>Insomnia_Mr</author><pubDate>Wed, 01 Jul 2020 11:36:24 +0800</pubDate><description><![CDATA[简介
Swarm的特性：
1.工作节点的注册和发现
2.管理节点收集集群中所有的信息
3.管理节点支持HA
4.管理节点能感知集群的变化，在节点挂掉后重新调度上面的container
5.提供filter和scheduler的调度策略调度集群里的容器
Swarm概念
swarm：是一组docker引擎的集群
node：是单个docker引擎的实例，可以在一个物理机上也可以在多个
application：是应用
manager node：部署应用的时候会有一个manager node节点
Worker nod]]></description><category></category></item><item><title><![CDATA[docker-compose部署nginx代理tomcat集群实现负载均衡与部署lnmp+discuz]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/107004744</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/107004744</guid><author>Insomnia_Mr</author><pubDate>Sun, 28 Jun 2020 21:08:24 +0800</pubDate><description><![CDATA[nginx代理tomcat集群与部署lnmp+Discuznginx代理tomcat集群实现负载均衡目录结构构建tomcat镜像nginx配置文件时区文件网页文件docker-compose.yml启动并访问验证lnmp+Discuz
nginx代理tomcat集群实现负载均衡
目录结构
[root@localhost my-composetest]# tree
.
├── docker-compose.yml
├── etc
│   └── localtime						##时区文件
├── nginx
]]></description><category></category></item><item><title><![CDATA[docker ELK+filebeat+fluentd和compose的简单使用]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106935710</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106935710</guid><author>Insomnia_Mr</author><pubDate>Wed, 24 Jun 2020 11:55:59 +0800</pubDate><description><![CDATA[Filebeat+Fluentd和ComposeELK+FilebeatFilebeat的架构设计filebeat安装FluentdELK+filebeat+fluentdcompose的简单使用
ELK+Filebeat
关于docker elk安装可以翻阅上一个博客
filebeat 是基于原先 logstash-forwarder 的源码改造出来的。换句话说：filebeat 就是新版的 logstash-forwarder，也会是 ELK Stack 在 shipper 端的第一选择。
Filebe]]></description><category></category></item><item><title><![CDATA[Docker日志]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106899857</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106899857</guid><author>Insomnia_Mr</author><pubDate>Mon, 22 Jun 2020 13:57:35 +0800</pubDate><description><![CDATA[docker logs
docker默认配置下日志会发送到容器的标准输出设备和标准错误设备
例子：
docker  run -p 80:80 httpd
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: ]]></description><category></category></item><item><title><![CDATA[docker监控-数据收集器cAdvisor与prometheus架构]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106793305</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106793305</guid><author>Insomnia_Mr</author><pubDate>Tue, 16 Jun 2020 20:10:17 +0800</pubDate><description><![CDATA[数据收集器cAdvisor与prometheus架构数据收集器cAdvisorprometheus架构ExporterPrometheusGrafana
数据收集器cAdvisor
cAdvisor（Container Advisor）为容器用户提供了对其运行容器的资源使用和性能特征的理解。 它是一个运行守护程序，用于收集，聚合，处理和导出有关正在运行的容器的信息。 具体而言，对于每个容器，它保留资源隔离参数，历史资源使用和完整历史资源使用的直方图。
##下载镜像
docker pull google/ca]]></description><category></category></item><item><title><![CDATA[docker监控]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106748482</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106748482</guid><author>Insomnia_Mr</author><pubDate>Mon, 15 Jun 2020 11:22:43 +0800</pubDate><description><![CDATA[Docker自带的监控命令
docker container ps 查看当前运行的容器
docker container ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ceb5a7ef3180        registry:2          "/entrypoint.sh ]]></description><category></category></item><item><title><![CDATA[docker跨主机存储]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106641120</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106641120</guid><author>Insomnia_Mr</author><pubDate>Tue, 09 Jun 2020 15:03:24 +0800</pubDate><description><![CDATA[Rex-Ray driver
特点

cep 是开源的，而且社区活跃。
支持多种 backend，VirtualBox 的 Virtual Media、Amazon EBS、Ceph
RBD、OpenStack Cinder 等。
支持多种操作系统，Ubuntu、CentOS、RHEL 和 CoreOS。
支持多种容器编排引擎，Docker Swarm、Kubernetes 和 Mesos。
Rex-Ray 安装使用方法非常简单。

实验环境：
Oracle VM VirtualBox虚拟机
docker：]]></description><category></category></item><item><title><![CDATA[docker跨主机网络]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106605190</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106605190</guid><author>Insomnia_Mr</author><pubDate>Mon, 08 Jun 2020 14:02:07 +0800</pubDate><description><![CDATA[overlay与macvxlanoverlaymacvxlan
overlay
overlay网络模型在docker集群节点间的加入了一层虚拟网络，它有独立的虚拟网段，意味着docker容器发送的内容，会先发送到虚拟子网，再由虚拟子网包装为宿主机的真实网址进行发送。
也意味着在overlay网络模型上，docker不会暴露端口给宿主机，所有有关网络的事情都交给overlay去处理了，这样的好处就是在同一台服务器，不会引起端口冲突
环境：关闭防火墙
192.168.1.10   consul
192.168.]]></description><category></category></item><item><title><![CDATA[docker私有库搭建及dockermachine搭建]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106530907</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106530907</guid><author>Insomnia_Mr</author><pubDate>Wed, 03 Jun 2020 20:37:43 +0800</pubDate><description><![CDATA[docker私有库搭建
官方提供了Docker Hub作为一个公开的集中仓库，但是网速相对较慢，所以在内部网络中创建私有库会避免浪费资源的问题。
下载registry镜像
docker pull registry：2
##
目前Docker Registry已经升级到了v2，最新版的Docker已不再支持v1。

运行registry镜像
docker run -dit -p 5000:5000 --restart always -v /opt/data/registry:/var/lib/registry]]></description><category></category></item><item><title><![CDATA[docker Data volume存储资源]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106496185</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106496185</guid><author>Insomnia_Mr</author><pubDate>Tue, 02 Jun 2020 17:05:33 +0800</pubDate><description><![CDATA[Data volumeBind mountmanaged volume容器之间数据共享data-packed volume container删除（销毁）volume
Data volume存在于宿主机中，独立于容器，和容器的生命周期是分离的，数据卷存在于宿主机的文件系统中，数据卷可以目录也可以是文件，容器可以利用数据卷与宿主机进行数据共享，实现了容器间的数据共享和交换。
Data volume特点：

容器启动的时候初始化的，如果容器使用的镜像包含了数据，这些数据也会拷贝到数据卷中。
容器对数据卷的修改是]]></description><category></category></item><item><title><![CDATA[docker的基本网络]]></title><link>https://blog.csdn.net/Insomnia_Mr/article/details/106443158</link><guid>https://blog.csdn.net/Insomnia_Mr/article/details/106443158</guid><author>Insomnia_Mr</author><pubDate>Sat, 30 May 2020 17:50:52 +0800</pubDate><description><![CDATA[默认网络
使用docker network ls查看

docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
0bd3ee847342        bridge              bridge              local
aa4c159d7c35        host                host                local
c34d73cf4f4c]]></description><category></category></item></channel></rss>