翻译 If the elements of a list are known beforehand, a quicker way to construct it is to call acutBuildList(), which takes a variable number of argument pairs (with exceptions such as RTLB, RTLE, -3, and others) and returns a pointer to a list of result buffers that contains the specified types and values, linked together in the order in which they were passed to acutBuildList(). This function allocates memory as required and initializes all values. The last argument to acutBuildList() must be a single argument whose value is either zero or RTNONE.
时间: 2023-07-03 21:17:42 浏览: 155
如果列表的元素在预先已知,构建它的更快方法是调用acutBuildList(),它接受可变数量的参数对(有一些例外,如RTLB、RTLE、-3和其他参数),并返回指向结果缓冲区列表的指针,该列表包含指定的类型和值,并按照它们传递给acutBuildList()的顺序链接在一起。该函数根据需要分配内存并初始化所有值。acutBuildList()的最后一个参数必须是单个参数,其值为零或RTNONE。
相关问题
ubeadm init --apiserver-advertise-address=192.168.169.133 --image-repository registry.aliyuncs.com/google_containers --kubernetes-version=v1.17.4 --service-cidr=10.96.0.0/12 W0225 17:09:35.287814 43878 validation.go:28] Cannot validate kube-proxy config - no validator is available W0225 17:09:35.287967 43878 validation.go:28] Cannot validate kubelet config - no validator is available [init] Using Kubernetes version: v1.17.4 [preflight] Running pre-flight checks [preflight] Pulling images required for setting up a Kubernetes cluster [preflight] This might take a minute or two, depending on the speed of your internet connection [preflight] You can also perform this action in beforehand using 'kubeadm config images pull' [kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" [kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml" [kubelet-start] Starting the kubelet
根据您提供的信息,您正在使用kubeadm初始化一个Kubernetes集群。在初始化过程中,出现了一些警告信息,但这些警告不会影响到集群的正常运行。
警告信息"W0225 17:09:35.287814 43878 validation.go:28] Cannot validate kube-proxy config - no validator is available"和"W0225 17:09:35.287967 43878 validation.go:28] Cannot validate kubelet config - no validator is available"表示没有可用的验证器来验证kube-proxy和kubelet的配置。这些警告是由于缺少验证器导致的,但并不会对集群的功能产生重大影响。
接下来,kubeadm将执行预安装检查,并拉取设置Kubernetes集群所需的镜像。这个过程可能需要一两分钟,具体取决于您的互联网连接速度。您也可以预先使用'kubeadm config images pull'命令来完成此操作。
最后,kubeadm将生成kubelet的配置文件,并启动kubelet服务。这将使kubelet使用生成的配置文件来启动和管理集群中的节点。
请注意,这里只是提供了kubeadm初始化集群的部分输出信息,如果您有其他问题或需要进一步帮助,请随时提问。
[init] Using Kubernetes version: v1.21.6 [preflight] Running pre-flight checks [WARNING Service-Docker]: docker service is not enabled, please run 'systemctl enable docker.service' [WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service' [preflight] Pulling images required for setting up a Kubernetes cluster [preflight] This might take a minute or two, depending on the speed of your internet connection [preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
It looks like you are trying to set up a Kubernetes cluster and the pre-flight checks are indicating that the Docker and kubelet services are not enabled. You can enable these services by running the following commands:
```
sudo systemctl enable docker.service
sudo systemctl enable kubelet.service
```
After enabling these services, you can proceed with setting up the Kubernetes cluster. The pre-flight checks are also pulling the necessary images for the setup, which may take some time depending on your internet connection speed. Alternatively, you can pull the images beforehand using the command `kubeadm config images pull`.
阅读全文