We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allinone环境,尝试使用Taint插件去除master污点,根据官方文档,Clusterfile配置如下:
apiVersion: sealer.cloud/v2 kind: Cluster metadata: creationTimestamp: null name: my-cluster spec: hosts: - ips: [ 172.26.198.3 ] roles: [ master ] # add role field to specify the node role image: helm-dash-ingress-redis:v1 ssh: user: root passwd: P@ssw1rd port: "22" --- apiVersion: sealer.aliyun.com/v1alpha1 kind: Plugin metadata: name: taint spec: type: TAINT action: PreGuest data: | 172.26.198.3 node-role.kubernetes.io/master:NoSchedule- --- apiVersion: sealer.aliyun.com/v1alpha1 kind: Plugin metadata: name: MyLabel spec: type: LABEL action: PreGuest data: | 172.26.198.3 envnode=xiot --- apiVersion: sealer.aliyun.com/v1alpha1 kind: Plugin metadata: name: checkCluster spec: type: CLUSTERCHECK action: PreGuest
部分运行日志如下:
2022-05-24 11:16:53 [INFO] [init.go:251] start to init master0... 2022-05-24 11:17:08 [INFO] [init.go:206] join command is: kubeadm join apiserver.cluster.local:6443 --token dqx9cl.6ut6aa592n6vkelj \ --discovery-token-ca-cert-hash sha256:5480f166cc498eca0fd324e147be0c5d15d0ef2e3ff8391050662f3f71516785 \ --control-plane --certificate-key 545f841e087c383600c1c2b5f01ef1d1974ee35eed61d2920483970a01d4ce5a 2022-05-24 11:17:08 [INFO] [labels.go:77] successfully added node 172.26.198.3 labels [{envnode xiot}]. 2022-05-24 11:17:08 [INFO] [cluster_check_plugin.go:68] wait for the cluster to ready 2022-05-24 11:17:38 [INFO] [cluster_check_plugin.go:68] wait for the cluster to ready 2022-05-24 11:18:08 [INFO] [cluster_check_plugin.go:68] wait for the cluster to ready 2022-05-24 11:18:38 [INFO] [cluster_check_plugin.go:68] wait for the cluster to ready 2022-05-24 11:19:08 [INFO] [cluster_check_plugin.go:70] cluster is ready now
运行完成后查看master节点信息:
`kubectl describe node ems8 Name: ems8 Roles: control-plane,master Labels: beta.kubernetes.io/arch=amd64 beta.kubernetes.io/os=linux envnode=xiot kubernetes.io/arch=amd64 kubernetes.io/hostname=ems8 kubernetes.io/os=linux node-role.kubernetes.io/control-plane= node-role.kubernetes.io/master= Annotations: kubeadm.alpha.kubernetes.io/cri-socket: /var/run/dockershim.sock node.alpha.kubernetes.io/ttl: 0 projectcalico.org/IPv4Address: 172.26.198.3/24 projectcalico.org/IPv4VXLANTunnelAddr: 100.99.252.0 volumes.kubernetes.io/controller-managed-attach-detach: true CreationTimestamp: Tue, 24 May 2022 11:17:05 +0800 Taints: node-role.kubernetes.io/master:NoSchedule Unschedulable: false Lease: HolderIdentity: ems8 AcquireTime: <unset> RenewTime: Tue, 24 May 2022 11:25:13 +0800 `
可以看到,Label插件可以正常生效,但是Taint插件未生效。describe查看节点,还存在污点node-role.kubernetes.io/master:NoSchedule,麻烦看下配置是否有问题?
sealer version
cat /etc/os-release
uname -a
The text was updated successfully, but these errors were encountered:
bxy4543
No branches or pull requests
What happened:
allinone环境,尝试使用Taint插件去除master污点,根据官方文档,Clusterfile配置如下:
部分运行日志如下:
运行完成后查看master节点信息:
可以看到,Label插件可以正常生效,但是Taint插件未生效。describe查看节点,还存在污点node-role.kubernetes.io/master:NoSchedule,麻烦看下配置是否有问题?
Anything else we need to know?:
Environment:
sealer version
): 0.8.5cat /etc/os-release
): debian 10.9uname -a
): Linux ems8 4.19.0-16-amd64 fix: ci lint for mod registry and image #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: