摘要: 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 阅读(413) 评论(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 阅读(492) 评论(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 阅读(1506) 评论(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 阅读(786) 评论(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 阅读(663) 评论(0) 推荐(0) 编辑