PLAY [all] *********************************************************************
TASK [设置代理服务器环境变量] *************************************************************
ok: [192.168.85.131]
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.85.131]
included: /opt/k8s/git/kubeadm-ha/roles/prepare/base/tasks/verify_variables.yml for 192.168.85.131
TASK [prepare/base : 校验 NodeName 是否合法] *****************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 etcd 节点数量] *********************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 master 节点数量] *******************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 worker 节点数量] *******************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 new-etcd 节点组数量] ****************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 etcd 节点数量] *********************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 lb 模式类型] ***********************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 lb 模式端口设置] *********************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 kube-proxy 模式类型] ***************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 ingress controller node port 端口设置] *********************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 ingress controller http node port 端口设置] ****************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 ingress controller https node port 端口设置] ***************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
included: /opt/k8s/git/kubeadm-ha/roles/prepare/base/tasks/verify_node.yml for 192.168.85.131
TASK [prepare/base : 校验节点操作系统] *************************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验节点 systemd 类型操作系统] **************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验节点系统内核] *************************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验节点系统架构] *************************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验节点系统版本] *************************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 master 节点内存] *******************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 worker 节点内存] *******************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 master 节点CPU核数] ****************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [prepare/base : 校验 worker 节点CPU核数] ****************************************
ok: [192.168.85.131] => {
"changed": false,
"msg": "All assertions passed"
}
included: /opt/k8s/git/kubeadm-ha/roles/prepare/base/tasks/common.yml for 192.168.85.131
TASK [prepare/base : 统一时区为 Asia/Shanghai] **************************************
ok: [192.168.85.131]
TASK [prepare/base : 禁用系统 swap] ************************************************
changed: [192.168.85.131]
TASK [prepare/base : 删除 fstab swap 相关配置] ***************************************
changed: [192.168.85.131]
TASK [prepare/base : 加载内核模块] ***************************************************
ok: [192.168.85.131] => (item=sunrpc)
changed: [192.168.85.131] => (item=ip_vs)
changed: [192.168.85.131] => (item=ip_vs_rr)
changed: [192.168.85.131] => (item=ip_vs_sh)
changed: [192.168.85.131] => (item=ip_vs_wrr)
changed: [192.168.85.131] => (item=br_netfilter)
TASK [prepare/base : 加载nf_conntrack for kernel < 4.19] *************************
ok: [192.168.85.131]
TASK [prepare/base : 设置 systemd-modules-load 配置] *******************************
changed: [192.168.85.131]
TASK [prepare/base : 启动/重启 systemd-modules-load] *******************************
changed: [192.168.85.131]
TASK [prepare/base : 设置系统参数] ***************************************************
changed: [192.168.85.131]
TASK [prepare/base : 生效系统参数] ***************************************************
changed: [192.168.85.131]
TASK [prepare/base : 优化 nfs clinet 配置] *****************************************
changed: [192.168.85.131]
TASK [prepare/base : 生效 nfs clinet 配置] *****************************************
changed: [192.168.85.131]
TASK [prepare/base : 添加集群节点 hostname 信息到 hosts 文件中] ****************************
ok: [192.168.85.131]
TASK [prepare/base : 确认 hosts 文件中 localhost ipv4 配置正确] *************************
changed: [192.168.85.131]
TASK [prepare/base : 确认 hosts 文件中 localhost ipv6 配置正确] *************************
changed: [192.168.85.131]
TASK [prepare/base : 创建 systemd 配置目录] ******************************************
changed: [192.168.85.131]
TASK [prepare/base : 设置系统 ulimits] *********************************************
changed: [192.168.85.131]
included: /opt/k8s/git/kubeadm-ha/roles/prepare/base/tasks/centos.yml for 192.168.85.131
TASK [prepare/base : 判断 firewalld 是否安装] ****************************************
changed: [192.168.85.131]
TASK [prepare/base : 禁用防火墙] ****************************************************
changed: [192.168.85.131]
TASK [prepare/base : 设置 yum obsoletes 值为 0] ************************************
changed: [192.168.85.131]
TASK [prepare/base : 添加 epel 仓库] ***********************************************
changed: [192.168.85.131]
TASK [prepare/base : 刷新 yum 缓存] ************************************************
[WARNING]: Consider using the yum module rather than running 'yum'. If you
need to use command because yum is insufficient you can add 'warn: false' to
this command task or set 'command_warnings=False' in ansible.cfg to get rid of
this message.
fatal: [192.168.85.131]: FAILED! => {"changed": true, "cmd": "yum clean all && yum makecache fast", "delta": "0:00:00.697239", "end": "2020-11-23 17:29:17.150879", "msg": "non-zero return code", "rc": 2, "start": "2020-11-23 17:29:16.453640", "stderr": "usage: yum makecache [-c [config file]] [-q] [-v] [--version]\n [--installroot [path]] [--nodocs] [--noplugins]\n [--enableplugin [plugin]] [--disableplugin [plugin]]\n [--releasever RELEASEVER] [--setopt SETOPTS]\n [--skip-broken] [-h] [--allowerasing] [-b | --nobest]\n [-C] [-R [minutes]] [-d [debug level]] [--debugsolver]\n [--showduplicates] [-e ERRORLEVEL] [--obsoletes]\n [--rpmverbosity [debug level name]] [-y] [--assumeno]\n [--enablerepo [repo]] [--disablerepo [repo] | --repo\n [repo]] [--enable | --disable] [-x [package]]\n [--disableexcludes [repo]] [--repofrompath [repo,path]]\n [--noautoremove] [--nogpgcheck] [--color COLOR]\n [--refresh] [-4] [-6] [--destdir DESTDIR]\n [--downloadonly] [--comment COMMENT] [--bugfix]\n [--enhancement] [--newpackage] [--security]\n [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES]\n [--sec-severity {Critical,Important,Moderate,Low}]\n [--forcearch ARCH] [--timer]\nyum makecache: error: argument timer: invalid choice: 'fast' (choose from 'timer')", "stderr_lines": ["usage: yum makecache [-c [config file]] [-q] [-v] [--version]", " [--installroot [path]] [--nodocs] [--noplugins]", " [--enableplugin [plugin]] [--disableplugin [plugin]]", " [--releasever RELEASEVER] [--setopt SETOPTS]", " [--skip-broken] [-h] [--allowerasing] [-b | --nobest]", " [-C] [-R [minutes]] [-d [debug level]] [--debugsolver]", " [--showduplicates] [-e ERRORLEVEL] [--obsoletes]", " [--rpmverbosity [debug level name]] [-y] [--assumeno]", " [--enablerepo [repo]] [--disablerepo [repo] | --repo", " [repo]] [--enable | --disable] [-x [package]]", " [--disableexcludes [repo]] [--repofrompath [repo,path]]", " [--noautoremove] [--nogpgcheck] [--color COLOR]", " [--refresh] [-4] [-6] [--destdir DESTDIR]", " [--downloadonly] [--comment COMMENT] [--bugfix]", " [--enhancement] [--newpackage] [--security]", " [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES]", " [--sec-severity {Critical,Important,Moderate,Low}]", " [--forcearch ARCH] [--timer]", "yum makecache: error: argument timer: invalid choice: 'fast' (choose from 'timer')"], "stdout": "39 文件已删除", "stdout_lines": ["39 文件已删除"]}
NO MORE HOSTS LEFT *************************************************************
PLAY RECAP *********************************************************************
192.168.85.131 : ok=47 changed=17 unreachable=0 failed=1 skipped=14 rescued=0 ignored=0
[root@localhost kubeadm-ha]# kubectl get cs