This message was deleted.
# rke2
a
This message was deleted.
c
Can you open a GH issue, and attach the rke2-server logs and everything from /var/log/pods? The messages you quoted are all normal to see while things are initially starting up. Also, the master role label is automatically set by rke2 on servers, why are you specifying it manually?
b
thanks! will create a issue for this. but for the rke2-sever logs, there is a lot
flag is deprecated
messages and keep generating:
Copy code
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.
c
Yes the warnings about flags being deprecated is to be expected.
❤️ 1
I can't recall for sure, but I believe that the node-role labels are blocklisted by upstream Kubernetes to prevent nodes from setting those on themselves. Why were you trying to do that?
As I described above, it's not necessary.
👍 1
b
thanks for the info. i didn't know it's set automatically, it's not necessary