尝试运行kubeadm init
[root@ts_kubernetes_setup ~]# kubeadm init
[kubeadm] WARNING: kubeadm is in alpha, please do not use it for production clusters.
[preflight] Running pre-flight checks
[preflight] WARNING: firewalld is active, please ensure ports [6443 9898 10250] are open or your cluster may not function correctly
[preflight] Some fatal errors occurred:
hostname "ts_kubernetes_setup.localdomain" must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (e.g. 'example.com')
[preflight] If you know what you are doing, you can skip pre-flight checks with `--skip-preflight-checks`
[root@ts_kubernetes_setup ~]#
显示主机名错误。我可以在这台机器上运行kudeadm吗?
答案 0 :(得分:1)
您可以使用--api-external-dns-names
所述的kubeadm init --api-external-dns-names=kube.local
以外的其他名称。{3}}。 E.g:
require('application/models/base_model.php');
class User_model extends Base_model
{
function __construct()
{
parent::__construct();
}
}
这应该运行得很好。
您还可以更改计算机的主机名 - 您可以在reference manual找到很多方法。