随笔分类 - Docker && K8s
摘要:关闭或启动linux防火墙后,docker启动容器报错问题解决方式 解决办法:重建docker0网络恢复 1、按照进程名杀死docker进程 pkill docker 2、清空防火墙规则-清空nat表的所有链 iptables -t nat -F 3、查看定义规则的详细信息 iptables -L
阅读全文
摘要:1、从容器里面拷文件到宿主机 答:在宿主机里面执行以下命令 docker cp 容器名:要拷贝的文件在容器里面的路径 要拷贝到宿主机的相应路径 示例: 假设容器名为testtomcat,要从容器里面拷贝的文件路为:/usr/local/tomcat/webapps/test/js/test.js,
阅读全文
摘要:1. 安装 python-pip yum install python-pip 如果在安装 python-pip过程出现如下情况: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mir
阅读全文
摘要:https://docs.jumpserver.org/zh/master/install/docker_install/ docker 安装:# step 1: 安装必要的一些系统工具sudo yum install -y yum-utils device-mapper-persistent-da
阅读全文
摘要:yum list docker-ce --showduplicates | sort -r 1)yum install docker-ce-17.12.0.ce-1.el7.centos 2)yum install docker-ce-19.03.5 docker-ce-cli-19.03.5 co
阅读全文
摘要:yaml 文件用法https://yaml.orghrjr.yamlapiVersion: v1kind: Podmetadata: name: hrjr-web labels: app: webspec: containers: - name: front-end image: nginx por
阅读全文
摘要:pod健康检测 方法:exec http tcpSocket1) liveness-exec.yaml apiVersion: v1kind: Podmetadata: name: liveness-exec labels: app: livenessspec: containers: - name
阅读全文
摘要:hook 钩子函数 生命周期 lifecycle/postStart/preStophook-demo1.yaml lifecycle/postStart apiVersion: v1kind: Podmetadata: name: hook-demo1 labels: app: hookspec:
阅读全文
摘要:安装k8s集群 master/node机器的基础设置systemctl disable firewalldsystemctl stop firewalldvi /etc/selinux/configSELINUX=disabled关闭 swapswapoff -avi /etc/fstab#/dev
阅读全文
摘要:来自:https://www.cnblogs.com/RainingNight/p/deploying-k8s-dashboard-ui.html kubernetes-dashboard(1.8.3) Kubernetes Dashboard 是一个管理Kubernetes集群的全功能Web界面,
阅读全文
摘要:Master Node01节点 同样安装步骤 mkdir -p /etc/cni/net.d/ cat <<EOF> /etc/cni/net.d/10-flannel.conf { “name”: “cbr0”, “type”: “flannel”, “delegate”: { “isDefaul
阅读全文
摘要://解决报错问题:[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10255/healthz' failed with error: Get http://localhost:10255/healthz: dial
阅读全文
摘要:https://blog.51cto.com/devingeng/2096495环境描述:采用CentOS7.4 minimual,docker 17.03.2-ce,kubeadm 1.10.0,etcd 3.0, k8s 1.10.0我们这里选用三个节点搭建一个实验环境。172.16.3.13
阅读全文
摘要:用阿里云账号登陆进入控制台; 找到 配置镜像加速器 CentOS1. 安装/升级Docker客户端推荐安装1.10.0以上版本的Docker客户端,参考文档 docker-ce2. 配置镜像加速器针对Docker客户端版本大于 1.10.0 的用户您可以通过修改daemon配置文件/etc/dock
阅读全文