所以我试图为kubernetes运行节点一致性测试。 https://kubernetes.io/docs/setup/node-conformance/ 这件事,它抱怨不支持的码头工人版本。 在查看go代码之后,它需要1.7.x版本的docker,但是我不能将其版本下拉为不受支持的版本,有人解决了这个问题吗? 这是我的输出:
~# docker run -it --privileged --net=host -v /:/rootfs -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result k8s.gcr.io/node-test:0.2
Running Suite: E2eNode Suite
============================
Random Seed: 1547126906 - Will randomize all specs
Will run 88 of 162 specs
Running in parallel across 8 nodes
OS: Linux
KERNEL_VERSION: 4.15.0-43-generic
CONFIG_NAMESPACES: enabled
CONFIG_NET_NS: enabled
CONFIG_PID_NS: enabled
CONFIG_IPC_NS: enabled
CONFIG_UTS_NS: enabled
CONFIG_CGROUPS: enabled
CONFIG_CGROUP_CPUACCT: enabled
CONFIG_CGROUP_DEVICE: enabled
CONFIG_CGROUP_FREEZER: enabled
CONFIG_CGROUP_SCHED: enabled
CONFIG_CPUSETS: enabled
CONFIG_MEMCG: enabled
CONFIG_INET: enabled
CONFIG_EXT4_FS: enabled
CONFIG_PROC_FS: enabled
CONFIG_NETFILTER_XT_TARGET_REDIRECT: enabled (as module)
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled (as module)
CONFIG_OVERLAY_FS: enabled (as module)
CONFIG_AUFS_FS: enabled (as module)
CONFIG_BLK_DEV_DM: enabled
CGROUPS_CPU: enabled
CGROUPS_CPUACCT: enabled
CGROUPS_CPUSET: enabled
CGROUPS_DEVICES: enabled
CGROUPS_FREEZER: enabled
CGROUPS_MEMORY: enabled
DOCKER_VERSION: 18.06.0-ce
F0110 13:28:26.746125 129 e2e_node_suite_test.go:96] system validation failed: unsupported docker version: 18.06.0-ce
答案 0 :(得分:0)
一对夫妇,我建议您运行一致性测试:
1)忘记https://kubernetes.io/docs/setup/node-conformance/
2)安装kubetest并按照Conformance Testing in Kubernetes的说明进行操作
3)使用Heptio的sonobuoy解决方案。您可以在这里找到更多信息:Conformance Testing - 1.11+
祝你好运!