摘要: 标准输入,标准输出,错误输出(0 1 2)>/dev/null 2>&1。这条命令其实分为两命令,一个是>/dev/null,另一个是2>&1>/dev/null 2>&1 的作用就是让 标准输出、错误输出 重定向到/dev/null中(丢弃标准输出)2>&1 0 标准输入 /proc/self/f 阅读全文
posted @ 2019-10-29 09:19 walkersss 阅读(2388) 评论(0) 推荐(0)
摘要: yaml 文件用法https://yaml.orghrjr.yamlapiVersion: v1kind: Podmetadata: name: hrjr-web labels: app: webspec: containers: - name: front-end image: nginx por 阅读全文
posted @ 2019-10-28 19:12 walkersss 阅读(439) 评论(0) 推荐(0)
摘要: pod健康检测 方法:exec http tcpSocket1) liveness-exec.yaml apiVersion: v1kind: Podmetadata: name: liveness-exec labels: app: livenessspec: containers: - name 阅读全文
posted @ 2019-10-28 19:08 walkersss 阅读(516) 评论(0) 推荐(0)
摘要: hook 钩子函数 生命周期 lifecycle/postStart/preStophook-demo1.yaml lifecycle/postStart apiVersion: v1kind: Podmetadata: name: hook-demo1 labels: app: hookspec: 阅读全文
posted @ 2019-10-28 19:07 walkersss 阅读(1523) 评论(0) 推荐(0)
摘要: 安装k8s集群 master/node机器的基础设置systemctl disable firewalldsystemctl stop firewalldvi /etc/selinux/configSELINUX=disabled关闭 swapswapoff -avi /etc/fstab#/dev 阅读全文
posted @ 2019-10-28 01:40 walkersss 阅读(809) 评论(0) 推荐(0)
摘要: 来自:https://www.cnblogs.com/RainingNight/p/deploying-k8s-dashboard-ui.html kubernetes-dashboard(1.8.3) Kubernetes Dashboard 是一个管理Kubernetes集群的全功能Web界面, 阅读全文
posted @ 2019-10-28 00:57 walkersss 阅读(722) 评论(0) 推荐(0)
摘要: 转至:https://www.cnblogs.com/ldsweely/p/9400583.html 0、思路 创建一个新的逻辑分区,将新的逻辑分区格式化ext3(或其他类型)的文件系统,mount到磁盘空间不够的文件系统,就跟原来的分区/文件系统一样的使用 1、准备 1.1 注意使用VMware自 阅读全文
posted @ 2019-10-27 21:56 walkersss 阅读(572) 评论(0) 推荐(0)
摘要: Master Node01节点 同样安装步骤 mkdir -p /etc/cni/net.d/ cat <<EOF> /etc/cni/net.d/10-flannel.conf { “name”: “cbr0”, “type”: “flannel”, “delegate”: { “isDefaul 阅读全文
posted @ 2019-10-25 17:14 walkersss 阅读(19666) 评论(0) 推荐(0)
摘要: k8s v1.10.0-0 集群版本 组件安装 pull.sh #!/bin/bashimages=(kube-proxy-amd64:v1.10.0 kube-scheduler-amd64:v1.10.0 kube-controller-manager-amd64:v1.10.0 kube-ap 阅读全文
posted @ 2019-10-25 16:47 walkersss 阅读(281) 评论(0) 推荐(0)
摘要: //解决报错问题:[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10255/healthz' failed with error: Get http://localhost:10255/healthz: dial 阅读全文
posted @ 2019-10-25 16:43 walkersss 阅读(454) 评论(0) 推荐(0)