创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
虚拟机:Centos7.5
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
KubeSphere版本信息
例如:v3.4.0。离线安装。
问题是什么
[root@k8s-master01 test]# ./kk init registry -f config-sample.yaml -a kubesphere.tar.gz
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ || | |) | __/ |\ \ __/ |_| |
\| \/\,|./ \\| \/\|\__, |
__/ |
|___/
18:31:54 CST [GreetingsModule] Greetings
18:31:55 CST message: [k8s-worker03]
Greetings, KubeKey!
18:31:55 CST message: [k8s-worker02]
Greetings, KubeKey!
18:31:57 CST message: [k8s-master01]
Greetings, KubeKey!
18:31:58 CST message: [k8s-worker01]
Greetings, KubeKey!
18:31:58 CST success: [k8s-worker03]
18:31:58 CST success: [k8s-worker02]
18:31:58 CST success: [k8s-master01]
18:31:58 CST success: [k8s-worker01]
18:31:58 CST [UnArchiveArtifactModule] Check the KubeKey artifact md5 value
18:33:30 CST success: [LocalHost]
18:33:30 CST [UnArchiveArtifactModule] UnArchive the KubeKey artifact
18:33:30 CST skipped: [LocalHost]
18:33:30 CST [UnArchiveArtifactModule] Create the KubeKey artifact Md5 file
18:33:30 CST skipped: [LocalHost]
18:33:30 CST [RegistryPackageModule] Download registry package
18:33:30 CST message: [localhost]
downloading amd64 harbor v2.5.3 …
18:33:38 CST message: [localhost]
downloading amd64 docker 20.10.8 …
18:33:39 CST message: [localhost]
downloading amd64 compose v2.2.2 …
18:33:39 CST success: [LocalHost]
18:33:39 CST [ConfigureOSModule] Get OS release
18:33:40 CST success: [k8s-worker03]
18:33:40 CST success: [k8s-worker02]
18:33:40 CST success: [k8s-worker01]
18:33:40 CST success: [k8s-master01]
18:33:40 CST [ConfigureOSModule] Prepare to init OS
18:33:46 CST success: [k8s-worker03]
18:33:46 CST success: [k8s-worker01]
18:33:46 CST success: [k8s-worker02]
18:33:46 CST success: [k8s-master01]
18:33:46 CST [ConfigureOSModule] Generate init os script
18:33:48 CST success: [k8s-worker03]
18:33:48 CST success: [k8s-worker01]
18:33:48 CST success: [k8s-worker02]
18:33:48 CST success: [k8s-master01]
18:33:48 CST [ConfigureOSModule] Exec init os script
18:33:49 CST stdout: [k8s-worker03]
setenforce: SELinux is disabled
Disabled
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
net.core.netdev_max_backlog = 65535
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.core.somaxconn = 32768
net.ipv4.tcp_max_syn_backlog = 1048576
net.ipv4.neigh.default.gc_thresh1 = 512
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.tcp_retries2 = 15
net.ipv4.tcp_max_tw_buckets = 1048576
net.ipv4.tcp_max_orphans = 65535
net.ipv4.udp_rmem_min = 131072
net.ipv4.udp_wmem_min = 131072
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.arp_accept = 1
net.ipv4.conf.default.arp_accept = 1
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.default.arp_ignore = 1
vm.max_map_count = 262144
vm.swappiness = 0
vm.overcommit_memory = 0
fs.inotify.max_user_instances = 524288
fs.inotify.max_user_watches = 524288
fs.pipe-max-size = 4194304
fs.aio-max-nr = 262144
kernel.pid_max = 65535
kernel.watchdog_thresh = 5
kernel.hung_task_timeout_secs = 5
18:33:51 CST stdout: [k8s-worker01]
setenforce: SELinux is disabled
Disabled
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
net.core.netdev_max_backlog = 65535
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.core.somaxconn = 32768
net.ipv4.tcp_max_syn_backlog = 1048576
net.ipv4.neigh.default.gc_thresh1 = 512
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.tcp_retries2 = 15
net.ipv4.tcp_max_tw_buckets = 1048576
net.ipv4.tcp_max_orphans = 65535
net.ipv4.udp_rmem_min = 131072
net.ipv4.udp_wmem_min = 131072
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.arp_accept = 1
net.ipv4.conf.default.arp_accept = 1
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.default.arp_ignore = 1
vm.max_map_count = 262144
vm.swappiness = 0
vm.overcommit_memory = 0
fs.inotify.max_user_instances = 524288
fs.inotify.max_user_watches = 524288
fs.pipe-max-size = 4194304
fs.aio-max-nr = 262144
kernel.pid_max = 65535
kernel.watchdog_thresh = 5
kernel.hung_task_timeout_secs = 5
18:33:52 CST stdout: [k8s-master01]
setenforce: SELinux is disabled
Disabled
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
net.core.netdev_max_backlog = 65535
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.core.somaxconn = 32768
net.ipv4.tcp_max_syn_backlog = 1048576
net.ipv4.neigh.default.gc_thresh1 = 512
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.tcp_retries2 = 15
net.ipv4.tcp_max_tw_buckets = 1048576
net.ipv4.tcp_max_orphans = 65535
net.ipv4.udp_rmem_min = 131072
net.ipv4.udp_wmem_min = 131072
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.arp_accept = 1
net.ipv4.conf.default.arp_accept = 1
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.default.arp_ignore = 1
vm.max_map_count = 262144
vm.swappiness = 0
vm.overcommit_memory = 0
fs.inotify.max_user_instances = 524288
fs.inotify.max_user_watches = 524288
fs.pipe-max-size = 4194304
fs.aio-max-nr = 262144
kernel.pid_max = 65535
kernel.watchdog_thresh = 5
kernel.hung_task_timeout_secs = 5
18:33:53 CST stdout: [k8s-worker02]
setenforce: SELinux is disabled
Disabled
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
net.core.netdev_max_backlog = 65535
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.core.somaxconn = 32768
net.ipv4.tcp_max_syn_backlog = 1048576
net.ipv4.neigh.default.gc_thresh1 = 512
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.tcp_retries2 = 15
net.ipv4.tcp_max_tw_buckets = 1048576
net.ipv4.tcp_max_orphans = 65535
net.ipv4.udp_rmem_min = 131072
net.ipv4.udp_wmem_min = 131072
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.arp_accept = 1
net.ipv4.conf.default.arp_accept = 1
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.default.arp_ignore = 1
vm.max_map_count = 262144
vm.swappiness = 0
vm.overcommit_memory = 0
fs.inotify.max_user_instances = 524288
fs.inotify.max_user_watches = 524288
fs.pipe-max-size = 4194304
fs.aio-max-nr = 262144
kernel.pid_max = 65535
kernel.watchdog_thresh = 5
kernel.hung_task_timeout_secs = 5
18:33:53 CST success: [k8s-worker03]
18:33:53 CST success: [k8s-worker01]
18:33:53 CST success: [k8s-master01]
18:33:53 CST success: [k8s-worker02]
18:33:53 CST [ConfigureOSModule] configure the ntp server for each node
18:33:53 CST skipped: [k8s-worker02]
18:33:53 CST skipped: [k8s-worker01]
18:33:53 CST skipped: [k8s-master01]
18:33:53 CST skipped: [k8s-worker03]
18:33:53 CST [InitRegistryModule] Fetch registry certs
18:33:53 CST success: [k8s-worker03]
18:33:53 CST [InitRegistryModule] Generate registry Certs
[certs] Using existing ca certificate authority
18:33:53 CST message: [LocalHost]
unable to sign certificate: must specify a CommonName
18:33:53 CST failed: [LocalHost]
error: Pipeline[InitRegistryPipeline] execute failed: Module[InitRegistryModule] exec failed:
failed: [LocalHost] [GenerateRegistryCerts] exec failed after 1 retries: unable to sign certificate: must specify a CommonName
有哪位大佬帮忙遇到过这个问题,能帮忙看看吗?