bland-jackal-22983
05/17/2022, 8:55 AMrke2-server
installation would fail when i set the node-label
values?
in the /etc/rancher/rke2/config.yaml
i have:
node-label:
- <http://node-role.kubernetes.io/master|node-role.kubernetes.io/master>
- <http://openebs.io/engine=mayastor|openebs.io/engine=mayastor>
now if i install rke2 with everything the same as before but with this new node-label
, i would have this error:
May 17 08:48:26 698F191 rke2[121465]: time="2022-05-17T08:48:26Z" level=error msg="Kubelet exited: exit status 1"
May 17 08:48:28 698F191 rke2[121465]: {"level":"warn","ts":"2022-05-17T08:48:28.923Z","logger":"etcd-client","caller":"v3@v3.5.3-k3s1/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"<etcd-endpoints://0xc000955340/127.0.0.1:2379>","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\""}
May 17 08:48:28 698F191 rke2[121465]: time="2022-05-17T08:48:28Z" level=info msg="Failed to test data store connection: context deadline exceeded"
May 17 08:48:30 698F191 rke2[121465]: {"level":"warn","ts":"2022-05-17T08:48:30.005Z","logger":"etcd-client","caller":"v3@v3.5.3-k3s1/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"<etcd-endpoints://0xc000955340/127.0.0.1:2379>","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\""}
May 17 08:48:30 698F191 rke2[121465]: time="2022-05-17T08:48:30Z" level=error msg="Failed to check local etcd status for learner management: context deadline exceeded"
May 17 08:48:30 698F191 rke2[121465]: time="2022-05-17T08:48:30Z" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: <https://127.0.0.1:9345/v1-rke2/readyz>: 500 Internal Server Error"
if i don't have this node-label
section, the installation goes through.
os: ubuntu 20..04
rke2 version: v1.22.9
creamy-pencil-82913
05/17/2022, 2:31 PMbland-jackal-22983
05/17/2022, 3:28 PMflag is deprecated
messages and keep generating:
May 17 15:16:07 698F191 rke2[214445]: Flag --volume-plugin-dir has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --file-check-frequency has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --sync-frequency has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --address has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --anonymous-auth has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --authentication-token-webhook has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --authorization-mode has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --cgroup-driver has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --client-ca-file has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --cloud-provider has been deprecated, will be removed in 1.23, in favor of removing cloud provider code from Kubelet.
May 17 15:16:07 698F191 rke2[214445]: Flag --cluster-dns has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --cluster-domain has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --containerd has been deprecated, This is a cadvisor flag that was mistakenly registered with the Kubelet. Due to legacy concerns, it will follow the standard CLI deprecation timeline before being removed.
May 17 15:16:07 698F191 rke2[214445]: Flag --eviction-hard has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --eviction-minimum-reclaim has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --healthz-bind-address has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --pod-manifest-path has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --read-only-port has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --resolv-conf has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --serialize-image-pulls has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --tls-cert-file has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
May 17 15:16:07 698F191 rke2[214445]: Flag --tls-private-key-file has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See <https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/> for more information.
i understand what it means - put them in a kubelet config file and use --config
pointing to the file, instead of directly specifying them to kubelet-args
. however, i never explicitly specify them. is this expected?
lastly, after i remove the <http://node-role.kubernetes.io/master|node-role.kubernetes.io/master>
label, the rke2-server installation succeeded.creamy-pencil-82913
05/17/2022, 3:46 PMbland-jackal-22983
05/17/2022, 3:50 PM