GithubHelp home page GithubHelp logo

eip-work / kuboard-spray Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 151.0 20.12 MB

使用图形化的界面离线安装、维护、升级高可用的 K8S 集群

Home Page: https://kuboard-spray.cn

License: Apache License 2.0

Dockerfile 0.33% Shell 0.41% Go 22.43% JavaScript 4.57% HTML 5.01% Vue 61.67% SCSS 0.88% CSS 0.60% Python 4.10%
kubernetes kubespray

kuboard-spray's Issues

同步配置报错

添加了1个控制节点,1个计算节点完成后提醒同步配置,点了后报错
image

TASK [kubernetes/node : nginx-proxy | Write nginx-proxy configuration] *********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'kubectl'
fatal: [node1]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'kubectl'"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'kubectl'
fatal: [node3]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'kubectl'"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'kubectl'
fatal: [node2]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'kubectl'"}

PLAY RECAP *********************************************************************
localhost                  : ok=4    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
node1                      : ok=5    changed=0    unreachable=0    failed=1    skipped=3    rescued=0    ignored=0   
node2                      : ok=4    changed=0    unreachable=0    failed=1    skipped=1    rescued=0    ignored=0   
node3                      : ok=4    changed=0    unreachable=0    failed=1    skipped=1    rescued=0    ignored=0   

Playbook run took 0 days, 0 hours, 0 minutes, 3 seconds
Monday 17 January 2022  15:53:06 +0000 (0:00:00.313)       0:00:03.232 ******** 
=============================================================================== 
kubernetes/node : haproxy | Cleanup potentially deployed haproxy -------- 0.72s
kubernetes/node : nginx-proxy | Make nginx directory -------------------- 0.51s
Check that jinja is not too old (install via pip) ----------------------- 0.38s
kubernetes/node : nginx-proxy | Write nginx-proxy configuration --------- 0.31s
kubespray-defaults : Configure defaults --------------------------------- 0.31s
kubespray-defaults : Gather ansible_default_ipv4 from all hosts --------- 0.27s
kubespray-defaults : set fallback_ips ----------------------------------- 0.21s
kubespray-defaults : Populates no_proxy to all hosts -------------------- 0.14s
kubespray-defaults : create fallback_ips_base --------------------------- 0.09s
Check 2.9.0 <= Ansible version < 2.12.0 --------------------------------- 0.08s
Check that python netaddr is installed ---------------------------------- 0.07s
Check Ansible version > 2.10.11 when using ansible 2.10 ----------------- 0.06s
kubespray-defaults : Set no_proxy to all assigned cluster IPs and hostnames --- 0.05s

请问是什么问题,看报错信息是ansible的问题
另外检查了3台node节点的hosts文件,都有 kubectl 这台机器的host信息

calico_pool_conf.spec.blockSize|int

fatal: [master1]: FAILED! => {
"assertion": "calico_pool_conf.spec.blockSize|int == (calico_pool_blocksize | default(kube_network_node_prefix) | int)",
"changed": false,
"evaluated_to": false,
"msg": "Your inventory doesn't match the current cluster configuration"
}

Timeout (12s) waiting for privilege escalation prompt

ubuntu20.04,kuboard spray安装k8s。

设置切换身份,使用管理员权限后,出现错误
TASK [bootstrap-os : Ensure bash_completion.d folder exists] *******************
fatal: [master]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}

NO MORE HOSTS LEFT *************************************************************

如果不切换身份,则出现权限错误:
TASK [os-services/roles/prepare : Disable service ufw] *************************
fatal: [master]: FAILED! => {"changed": false, "msg": "Unable to disable service ufw: Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.\nExecuting: /lib/systemd/systemd-sysv-install disable ufw\nFailed to reload daemon: Interactive authentication required.\nupdate-rc.d: error: Permission denied\n"}

应该怎么设置呢?

v1.0.0-alpha 升级到 v1.1.0 后升级集群报错

从 v1.0.0-alpha(spray-v2.18.5-5_k8s-v1.23.1_v1.4-amd64) 升级到 v1.1.0(spray-v2.18.0a-8_k8s-v1.23.6_v1.13-amd64)

The task includes an option with an undefined variable. The error was: {'coredns': {'container': True, 'enabled': "{{ dns_mode in ['coredns', 'coredns_dual'] }}", 'groups': ['k8s_cluster'], 'repo': '{{ coredns_image_repo }}', 'sha256': '{{ coredns_digest_checksum|default(None) }}', 'tag': '{{ coredns_image_tag }}'}, 'kuboard': {'container': True, 'enabled': '{{ kuboard_enabled }}', 'file': False, 'groups': ['kube_control_plane'], 'repo': 'eipwork/kuboard', 'sha256': '', 'tag': '{{ kuboard_version }}', 'version': '{{ kuboard_version }}'}, 'netcheck_etcd': {'container': True, 'dest': '{{ local_release_dir }}/etcd-{{ netcheck_etcd_image_tag }}-linux-{{ image_arch }}.tar.gz', 'enabled': '{{ deploy_netchecker }}', 'file': False, 'groups': ['k8s_cluster'], 'mode': '0755', 'owner': 'root', 'repo': '{{ etcd_image_repo }}', 'sha256': '{{ etcd_digest_checksum|d(None) }}', 'tag': '{{ netcheck_etcd_image_tag }}', 'unarchive': False, 'version': '{{ netcheck_etcd_image_tag }}'}}: 'kuboard_enabled' is undefined

The error appears to be in '/data/resource/spray-v2.18.0a-8_k8s-v1.23.6_v1.13
-amd64/content/3rd/kubespray/roles/download/tasks/main.yml': line 38, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

block:
- name: "Add kuboard-spray extra downloads"
^ here

完整日志

execute.log

create k8s cluster error

部分错误日志如下:

TASK [container-engine/runc : download_file | Copy file from cache to nodes, if it is available] ***
fatal: [master]: FAILED! => {"attempts": 4, "changed": false, "cmd": "sshpass -d3 /usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectionAttempts=3 -o UserKnownHostsFile=/dev/null -F /dev/null -o ControlMaster=auto -o ControlPersist=60m -o ControlPath=/data/cluster/default/[email protected]:22  --out-format=<<CHANGED>>%i %n%L /data/resource/spray-v2.18.0a-8_k8s-v1.23.4_v1.9-arm64/content/kubespray_cache/runc [email protected]:/tmp/releases/runc", "msg": "Warning: Permanently added '10.211.55.4' (ECDSA) to the list of known hosts.\r\nrsync: mkstemp \"/tmp/releases/.runc.Axw8pm\" failed: Permission denied (13)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]\n", "rc": 23}
FAILED - RETRYING: download_file | Copy file from cache to nodes, if it is available (2 retries left).
FAILED - RETRYING: download_file | Copy file from cache to nodes, if it is available (1 retries left).
fatal: [k8s-node-02]: FAILED! => {"attempts": 4, "changed": false, "cmd": "sshpass -d3 /usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectionAttempts=3 -o UserKnownHostsFile=/dev/null -F /dev/null -o ControlMaster=auto -o ControlPersist=60m -o ControlPath=/data/cluster/default/[email protected]:22  --out-format=<<CHANGED>>%i %n%L /data/resource/spray-v2.18.0a-8_k8s-v1.23.4_v1.9-arm64/content/kubespray_cache/runc [email protected]:/tmp/releases/runc", "msg": "Warning: Permanently added '10.211.55.6' (ECDSA) to the list of known hosts.\r\nrsync: mkstemp \"/tmp/releases/.runc.u1FCD1\" failed: Permission denied (13)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]\n", "rc": 23}
FAILED - RETRYING: download_file | Copy file from cache to nodes, if it is available (1 retries left).
fatal: [k8s-node-01]: FAILED! => {"attempts": 4, "changed": false, "cmd": "sshpass -d3 /usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectionAttempts=3 -o UserKnownHostsFile=/dev/null -F /dev/null -o ControlMaster=auto -o ControlPersist=60m -o ControlPath=/data/cluster/default/[email protected]:22  --out-format=<<CHANGED>>%i %n%L /data/resource/spray-v2.18.0a-8_k8s-v1.23.4_v1.9-arm64/content/kubespray_cache/runc [email protected]:/tmp/releases/runc", "msg": "Warning: Permanently added '10.211.55.5' (ECDSA) to the list of known hosts.\r\nrsync: mkstemp \"/tmp/releases/.runc.EmIgBv\" failed: Permission denied (13)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]\n", "rc": 23}

docker 启动无法映射为除80以外的其他端口

docker run -d
--privileged
--restart=unless-stopped
--name=kuboard-spray
-p 2080:80/tcp
-e TZ=Asia/Shanghai
-v /var/run/docker.sock:/var/run/docker.sock
-v ~/kuboard-spray-data:/data
eipwork/kuboard-spray:latest-amd64

Alibaba 基于 CentOS 的系统 Alibaba Cloud Linux 不被支持

操作系统

Alibaba Cloud Linux 3.2104 64位

问题

Alibaba 基于 CentOS 的系统不被支持。

预期解决方案

支持 Alibaba

版本对应

  • Alibaba Cloud Linux
    • 3 => CentOS 8 (100% 兼容)
    • 2 => CentOS 7 (貌似不能完全兼容)

其他

经测试, Anolis 没有默认安装 lsb_release 命令,可执行以下命令:

dnf install -y system-lsb-core

之后可正常执行 lsb_release -a


日志信息

TASK [kuboard-spray-facts : 检查是否支持此操作系统 Alibaba 3] *****************************
task path: /data/resource/spray-v2.18.0a-8_k8s-v1.23.5_v1.10-amd64/content/roles/kuboard-spray-facts/tasks/main.yml:58
fatal: [mini]: FAILED! => {
    "assertion": "kuboardspray_supported_os_versions|length > 0",
    "changed": false,
    "evaluated_to": false,
    "msg": [
        "当前资源包不支持此操作系统: Alibaba 3",
        "当前资源包支持的操作系统有: [{'distribution': 'Ubuntu', 'versions': ['20.04']}, {'distribution': 'Anolis', 'versions': ['8.5', '8.4']}, {'distribution': 'CentOS', 'versions': ['7.6', '7.8', '7.9', '8']}, {'distribution': 'OracleLinux', 'versions': ['8.5']}, {'distribution': 'Rocky', 'versions': ['8.5']}, {'distribution': 'openEuler', 'versions': ['20.03']}, {'distribution': 'Kylin Linux Advanced Server', 'versions': ['V10']}, {'distribution': 'openSUSE Leap', 'versions': ['15.3']}]"
    ]
}

集群创建后,健康检查始终报错

集群管理,状态检查,网络连通性检查,分别用v1.0.0-beta.1-amd64和v1.0.0-beta.2-amd64,都提示:failed : unexpected end of JSON input,该如何处理?

加 OS 软件源 centos 报错

/api/mirrors/centos-centos

{"code":500,"message":"cannot pase file: /data/mirror/centos-centos/status.yaml : open /data/mirror/centos-centos/status.yaml: no such file or directory"}{"code":500,"message":"cannot read status : cannot read pid: open /data/mirror/centos-centos/inventory.lastrun: no such file or directory"}{"code":200,"data":{"history":null,"inventory":null,"name":"centos-centos","status":null},"message":"success"}

增加工作节点报错

版本: spray-v2.18.0a-8_k8s-v1.23.7_v1.14
OS: Centos7
报错:
TASK [download : Add kuboard-spray extra downloads] **************************** fatal: [node4]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {'coredns': {'container': True, 'enabled': \"{{ dns_mode in ['coredns', 'coredns_dual'] }}\", 'groups': ['k8s_cluster'], 'repo': '{{ coredns_image_repo }}', 'sha256': '{{ coredns_digest_checksum|default(None) }}', 'tag': '{{ coredns_image_tag }}'}, 'kuboard': {'container': True, 'enabled': '{{ kuboard_enabled }}', 'file': False, 'groups': ['kube_control_plane'], 'repo': 'eipwork/kuboard', 'sha256': '', 'tag': '{{ kuboard_version }}', 'version': '{{ kuboard_version }}'}, 'netcheck_etcd': {'container': True, 'dest': '{{ local_release_dir }}/etcd-{{ netcheck_etcd_image_tag }}-linux-{{ image_arch }}.tar.gz', 'enabled': '{{ deploy_netchecker }}', 'file': False, 'groups': ['k8s_cluster'], 'mode': '0755', 'owner': 'root', 'repo': '{{ etcd_image_repo }}', 'sha256': '{{ etcd_digest_checksum|d(None) }}', 'tag': '{{ netcheck_etcd_image_tag }}', 'unarchive': False, 'version': '{{ netcheck_etcd_image_tag }}'}}: 'kuboard_version' is undefined\n\nThe error appears to be in '/data/resource/spray-v2.18.0a-8_k8s-v1.23.7_v1.14-amd64/content/3rd/kubespray/roles/download/tasks/main.yml': line 38, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: \"Add kuboard-spray extra downloads\"\n ^ here\n"}

'kuboard_version' is undefined 大家有遇到过吗?

添加master节点报错

version
spray :1.2.0
资源包: spray-v2.19.0a_k8s-v1.24.2_v2.1-amd64

添加master节点一直报错 kubectl 启动不起来

fatal: [master01]: FAILED! => {
    "attempts": 3,
    "changed": true,
    "cmd": [
        "/usr/local/bin/kubeadm",
        "join",
        "--config",
        "/etc/kubernetes/kubeadm-controlplane.yaml",
        "--ignore-preflight-errors=all",
        "--skip-phases="
    ],
    "delta": "0:00:00.893703",
    "end": "2022-08-03 09:30:21.895913",
    "msg": "non-zero return code",
    "rc": 1,
    "start": "2022-08-03 09:30:21.002210",
    "stderr": "error execution phase preflight: unable to fetch the kubeadm-config ConfigMap: failed to get config map: Get \"https://10.10.108.113:6443/api/v1/namespaces/kube-system/configmaps/kubeadm-config?timeout=10s\": dial tcp 10.10.108.113:6443: connect: connection refused\nTo see the stack trace of this error execute with --v=5 or higher",
    "stderr_lines": [
        "error execution phase preflight: unable to fetch the kubeadm-config ConfigMap: failed to get config map: Get \"https://10.10.108.113:6443/api/v1/namespaces/kube-system/configmaps/kubeadm-config?timeout=10s\": dial tcp 10.10.108.113:6443: connect: connection refused",
        "To see the stack trace of this error execute with --v=5 or higher"
    ],
    "stdout": "[preflight] Running pre-flight checks\n[preflight] Reading configuration from the cluster...\n[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'",
    "stdout_lines": [
        "[preflight] Running pre-flight checks",
        "[preflight] Reading configuration from the cluster...",
        "[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'"
    ]
}

/bin/sh: 1: shyaml: not found

fatal: [node1 -> localhost]: FAILED! => {
"changed": true,
"cmd": "cat package.yaml | shyaml get-value metadata.supported_os",
"delta": "0:00:00.002894",
"end": "2022-03-11 06:18:40.378894",
"invocation": {
"module_args": {
"_raw_params": "cat package.yaml | shyaml get-value metadata.supported_os",
"_uses_shell": true,
"argv": null,
"chdir": "/data/resource/spray-v2.18.0a-6_k8s-v1.23.4_v1.7-amd64/content",
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 127,
"start": "2022-03-11 06:18:40.376000",
"stderr": "/bin/sh: 1: shyaml: not found",
"stderr_lines": [
"/bin/sh: 1: shyaml: not found"
],
"stdout": "",
"stdout_lines": []
}

增加工作节点出现AnsibleUndefinedVariable: 'dict object' has no attribute 'manager'

kuboard-spray 版本:v1.0.0
资源包版本:spray-v2.18.0a-8_k8s-v1.23.5_v1.11-amd64
新增节点类型:计算节点
新增节点系统:ubuntu20.04
其他节点系统:ubuntu20.04

截图:
%{51Z NU5F~J}4$BL{G8RPK

J}H%__NSX9LQ$AH %BZ 7V6

错误文本:

TASK [kubernetes/node : nginx-proxy | Write nginx-proxy configuration] *********
task path: /data/resource/spray-v2.18.0a-8_k8s-v1.23.5_v1.11-amd64/content/3rd/kubespray/roles/kubernetes/node/tasks/loadbalancer/nginx-proxy.yml:14
The full traceback is:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/ansible/template/__init__.py", line 1066, in do_template
    res = j2_concat(rf)
  File "<template>", line 24, in root
  File "/usr/local/lib/python3.8/dist-packages/jinja2/runtime.py", line 747, in _fail_with_undefined_error
    raise self._undefined_exception(self._undefined_message)
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'manager'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/ansible/plugins/action/template.py", line 139, in run
    resultant = self._templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False)
  File "/usr/local/lib/python3.8/dist-packages/ansible/template/__init__.py", line 1103, in do_template
    raise AnsibleUndefinedVariable(e)
ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'manager'
fatal: [worknode2]: FAILED! => {
    "changed": false,
    "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'manager'"
}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
manager                    : ok=16   changed=3    unreachable=0    failed=0    skipped=20   rescued=0    ignored=0   
worknode2                  : ok=437  changed=49   unreachable=0    failed=1    skipped=471  rescued=0    ignored=0   

为节点设置密码时,对带空格的密码支持不友好。

image

位置:【集群管理】中新增集群,设置密码(不是密钥文件)时,在输入密码的框上:

  • 顺序输入:敲击空格键,不能输入空格。
  • 在中间输入:可以输入空格,但那个字符好像又不是空格(这也可能是 centos7 桌面的问题)。
  • 复制密码粘贴:此方案可行。

就是说,如果密码里有空格,就需要编辑好再复制粘贴入此框,而不能直接输入。但我想其实有必要支持直接输入(顺序的)。

bug

在点击添加os软件源后无法跳转到页面了
centos 7.6
docker-ce 20.10.14
win11 edge浏览器

Permission denied rsync error

TASK [download : download_file | Copy file from cache to nodes, if it is available] ***
fatal: [k8s-master]: FAILED! => {"attempts": 4, "changed": false, "cmd": "sshpass -d3 /usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=<>%i %n%L /data/resource/spray-v2.18.0a-2_k8s-v1.23.3_v1.6-amd64/content/kubespray_cache/kubeadm-v1.23.3-amd64 ********@192.168.0.201:/tmp/releases/kubeadm-v1.23.3-amd64", "msg": "Warning: Permanently added '192.168.0.201' (ECDSA) to the list of known hosts.\r\nrsync: mkstemp "/tmp/releases/.kubeadm-v1.23.3-amd64.zcRU4K" failed: Permission denied (13)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]\n", "rc": 23}

v1.1.0 build image failed

ending build context to Docker daemon 15.05MB
Step 1/26 : FROM ubuntu:focal-20220105
---> d13c942271d6
Step 2/26 : ADD .docker/pip.conf /root/.pip/pip.conf
---> Using cache
---> 6bb5da1d448a
Step 3/26 : ENV LANG=C.UTF-8
---> Using cache
---> 2c3292be881d
Step 4/26 : ENV TZ Asia/Shanghai
---> Using cache
---> 751f2bda2e2b
Step 5/26 : RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y libssl-dev sshpass apt-transport-https moreutils ca-certificates curl gnupg2 python3-pip unzip rsync tzdata && rm -rf /var/lib/apt/lists/*
---> Using cache
---> a4ea23234084
Step 6/26 : ARG arch
---> Using cache
---> bd5409ad2b17
Step 7/26 : RUN curl -o docker-ce-cli.deb https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu/dists/focal/pool/stable/$arch/docker-ce-cli_20.10.12~3-0~ubuntu-focal_$arch.deb && dpkg -i docker-ce-cli.deb && rm -rf docker-ce-cli.deb
---> Running in b011cf437e0c
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 153 100 153 0 0 768 0 --:--:-- --:--:-- --:--:-- 765
dpkg-deb: error: 'docker-ce-cli.deb' is not a Debian format archive
dpkg: error processing archive docker-ce-cli.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
docker-ce-cli.deb
The command '/bin/sh -c curl -o docker-ce-cli.deb https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu/dists/focal/pool/stable/$arch/docker-ce-cli_20.10.12~3-0~ubuntu-focal_$arch.deb && dpkg -i docker-ce-cli.deb && rm -rf docker-ce-cli.deb' returned a non-zero code: 1

kuboard-spray extra downloads

Spray版本:v1.0.0-alpha.2-amd64
版本:spray-v2.18.0a-2_k8s-v1.23.3_v1.6-amd64
报错:
TASK [download : Add kuboard-spray extra downloads] ****************************
fatal: [Node1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kuboardspray_extra_downloads' is undefined\n\nThe error appears to be in '/data/resource/spray-v2.18.0a-2_k8s-v1.23.3_v1.6-amd64/content/3rd/kubespray/roles/download/tasks/main.yml': line 38, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: "Add kuboard-spray extra downloads"\n ^ here\n"}
fatal: [Master]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kuboardspray_extra_downloads' is undefined\n\nThe error appears to be in '/data/resource/spray-v2.18.0a-2_k8s-v1.23.3_v1.6-amd64/content/3rd/kubespray/roles/download/tasks/main.yml': line 38, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: "Add kuboard-spray extra downloads"\n ^ here\n"}
fatal: [Node2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kuboardspray_extra_downloads' is undefined\n\nThe error appears to be in '/data/resource/spray-v2.18.0a-2_k8s-v1.23.3_v1.6-amd64/content/3rd/kubespray/roles/download/tasks/main.yml': line 38, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: "Add kuboard-spray extra downloads"\n ^ here\n"}

安装提示权限不足

ubuntu 20.04 服务器 通过 kuoard Sapray部署k8s 群集,提示权限不足
首先 都是纯净服务器 均已安全docker 版本也过关
在网页上配置,在网页上配置,通过普通用户登录 然后选择 su切换到root身份,但是依然提示权限不足。具体错误描述如下

image

麻烦看看谢谢

1.0.0 安装k8s集群后、添加不了子节点,提示证书失效、明明证书是我才生成的。

image
Uploading image.png…
提示信息
fatal: [k8s-node1]: FAILED! => {"changed": true, "cmd": ["timeout", "-k", "120s", "120s", "/usr/local/bin/kubeadm", "join", "--config", "/etc/kubernetes/kubeadm-client.conf", "--ignore-preflight-errors=all", "--skip-phases="], "delta": "0:00:01.440080", "end": "2022-05-06 08:24:52.745365", "msg": "non-zero return code", "rc": 1, "start": "2022-05-06 08:24:51.305285", "stderr": "error execution phase preflight: couldn't validate the identity of the API Server: cluster CA found in cluster-info ConfigMap is invalid: none of the public keys "sha256:59b9222cbe3f8be03512635847909f92988bdfd6a7104f66fe0d6d943defc8e3" are pinned\nTo see the stack trace of this error execute with --v=5 or higher", "stderr_lines": ["error execution phase preflight: couldn't validate the identity of the API Server: cluster CA found in cluster-info ConfigMap is invalid: none of the public keys "sha256:59b9222cbe3f8be03512635847909f92988bdfd6a7104f66fe0d6d943defc8e3" are pinned", "To see the stack trace of this error execute with --v=5 or higher"], "stdout": "[preflight] Running pre-flight checks", "stdout_lines": ["[preflight] Running pre-flight checks"]}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.